Getting a list of explicitly installed packages with Aptitude

This is one of the things that I never cared about enough to actually open the docs and look it up:

aptitude search '?and(?not(?automatic), ?installed)'

The equivalent expression using shorthands:

aptitude search '!~M ~i'

Now I can easily mark all those lib* packages as automatically installed.

Comments

Comments powered by Disqus