Cool aptitude search patterns
Posted Apr 13, 2006 12:14 UTC (Thu) by
cortana (subscriber, #24596)
Parent article:
Installing Software on Debian (O'ReillyNet)
List installed packages that are not official Debian packages:
aptitude search '~S~i!~Odebian'
List packages installed from experimental:
aptitude search ~S~i~Aexperimental
List packages with 'ruby' and 'gtk' in their names:
aptitude search 'ruby gtk'
aptitude search ~nruby~ngtk
List installed packages that depend on bash:
aptitude search ~S~i~Dbash
Purge all packages that have been removed except for their config files:
aptitude purge ~c
For the full list of these patterns, install 'aptitude-doc' and see chapter 2, section 3 of the manual.
(
Log in to post comments)