After executing the
aptitude search pattern command, I need to see only installed packages in the search result. Is there any way to do that?
~i (short for
?installed) to match the installed packages whose name contains
aptitude search '~i bash'
To match whose description contains
aptitude search '~i ~d bash'
To limit to the ones that are not installed:
aptitude search '!~i bash'
I usually do
dpkg -l|fgrep …. Does it count?
aptitude search '?narrow(?installed, …)'
(But I seem to prefer
dpkg -l anyway) ;)