Aptitude Tips
Searching
The default behaviour is to search only package names.
$ aptitude search regex
is the same as:
$ aptitude search '~nregex'
Search Names and Descriptions
This provides the same behaviour as using 'apt-cache search regex', where 'regex' is the regular expression you are searching for.
$ aptitude search '-dregex|~nregex'
It appears, just searching with '~dregex' actually searches both package names and package descriptions.
Installed Packages Only
~i is used to specify searching of installed packages only. E.g. to search for either 'svn' or 'subversion' in package descriptions:
$ aptitude search '~i~dsvn|~i~dsubversion'
To search only packages that are not installed:
$ aptitude search '!~i~dsvn|!~i~dsubversion'
Obsolete Packages Only
$ aptitude search '?obsolete'
See Also
-- Frank Dean - 07 Jan 2009
Related Topics: DebianTips