LWN.net Logo

Cool aptitude search patterns

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)

Not in Sarge

Posted Apr 16, 2006 19:07 UTC (Sun) by BackSeat (subscriber, #1886) [Link]

$ aptitude search '~S~i!~Odebian'
E: Unknown pattern type: S

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds