apt - How can I find all the additional packages I installed? - Ask Ubuntu


is there way list of package names have installed additionally shipped copy of ubuntu?

i didn't find options under manual files of apt, dpkg , apt-get seemed kind of function.

edit clarify: assuming ubuntu came packages a,b,c,d,e,f , manually installed packages x,y,z, how can list of x,y,z?

i believe there better ways this, works.

first download ubuntu manifest file ubuntu release

wget -c "releases.ubuntu.com/$(lsb_release -r -s)/ubuntu-$(lsb_release -r -s)-desktop-$(dpkg --print-architecture).manifest" -o ubuntu.manifest 

then generate list of packages have in system , save in file called installed

dpkg-query -w -f='${binary:package}\t${version}\n' > installed 

then copy , paste python code file naming pkg-diff.py (or whatever name want)

f = open('ubuntu.manifest', 'r')  default = [] line in f:   default.append(line.split('\t')[0])  f2 = open('installed', 'r') installed = [] line in f2:   installed.append(line.split('\t')[0])  extras = list(set(installed) - set(default))  print("\n".join(extras)) 

finally execute python script using command in terminal.

python3 ./pkg-diff.py 

it should give list of packages installed additionally.

note: files should in same directory.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User