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?
2 Answers
Add ~i (short for ?installed) to match the installed packages whose name contains bash:
aptitude search '~i bash'
To match whose description contains bash.
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?
UPD.: aptitude search '?narrow(?installed, …)'
(But I seem to prefer dpkg -l anyway) ;)
-
Thank you. Is there any way to do the same with the
aptitudecommand as well?Meysam– Meysam2013-12-09 13:44:05 +00:00Commented Dec 9, 2013 at 13:44 -