Skip to main content
koniiiik.org
  • Archive
  • Tags
  • RSS feed

    Getting a list of explicitly installed packages with Aptitude

    Michal 'koniiiik' Petrucha

    2016-05-31 13:13

    Comments

    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.

    Contents © 2018 Michal 'koniiiik' Petrucha - Powered by Nikola