You are not logged in.

#1 2017-10-28 12:09:20

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,217

Cool cli-fu for checking user installed packages.

Snatched from another nixer (username = ajgreeny) but posted here cause it's cool and/or potentially useful. Long since dorked with /var/log/dpkg-etc but the following I think it worthwhile, so posting.

Try

grep -i " install " /var/log/dpkg.log.1 /var/log/dpkg.log

for the most recent packages you've installed, and you will need to use zgrep instead of grep on the older higher numbered gzip archived logs, ie

zgrep -i "install " /var/log/dpkg.log.2,gz

.
That, or the two versions of the command, will I think show only packages that have been installed by you, including all dependencies, but not absolutely everything on the OS.

The above command, at least the first one seems to work as expected. I'm also fond of using the bash "history" and grep to back-search through stuff, such as packages I believe are of interest and can't remember what I'd been doing and installed at the time.

Last edited by BLizgreat! (2017-10-28 12:10:20)

Offline

Board footer

Powered by FluxBB