So I'm planning on doing a clean install for 8.10 when it comes out. Only I want to know what all I've installed on my current system. I know dpkg --get-selections will list packages, but a lot of those are automatically installed dependencies. Apt keeps track of which packages were manually installed, because it tells me when there are cruft packages and I should run "apt-get autoremove". I've found two different ways of doing this but I'm not sure if either is right...
Using APT:
Using aptitude:Code:cat /var/lib/apt/extended_states | grep -B 1 "Auto-Installed: 0" | grep "Package" | sed "s/Package: //"|sort > apt_manually-installed_packages.txt
Unfortunately, both methods return completely different lists of packages which don't overlap. The aptitude list seems to include lots of libraries that I certainly didn't install manually, while the apt list seems far too short, only including KDE4 stuff. Is there a tool that can analyze the dependencies, and find all the packages that are not depended on by any other package, and thus probably manually installed? Or seriously, what is the best way to do this? Does apt-get have a way to list packages that were automatically installed?Code:aptitude -F "%p" search \!~M~i~T > aptitude_manually-installed_packages.txt
Bookmarks