Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every time I install a package:

sudo apt-get install <pkg>

apt-get displays a list of suggested packages. I have simply ignored these so far, but some of these suggestions are actually good (and some are not). I would like to recover all these lists into one big list (so that I can review it and decide if there is some package I want to install), but I could not see them in /var/log/apt/history.log.

That is, I'm looking for something like

list = []
for package in installed_packages:
print list
share|improve this question
up vote 5 down vote accepted

Show the Suggests for all packages installed in a one-liner:

dpkg-query -W -f='${Package} (status: ${Status}) suggests: ${Suggests}\n' \
  | grep 'status: install ok installed' | grep -v 'suggests: $'

It queries the dpkg database, lists all locally-known packages marked other than "nothing" (also lists uninstalled), in a custom output format, then filtered for really installed packages and filtered for packages without suggests.

share|improve this answer

Using only aptitude, you can use the search pattern:

aptitude search '?reverse-suggests(~i)!(~i)'

and similarly, for recommends:

aptitude search '?reverse-recommends(~i)!(~i)'

All aptitude search options are available in the user's manual.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.