I installed a few packages with APT using apt-get. I used the --no-install-recommends switch with it to save some disk space.

Now I need to know: how do I install the recommended packages for the already installed programs?

  • 1
    Aptitude has a view in its graphical interface listing all packages which are recommended by any installed package. To reach it, install aptitude, then type aptitude in a terminal, and then press Ctrl+t or use the mouse to go to the menu bar. – Stefan Hamcke Jan 22 '16 at 22:48
  • Is there any way of doing it with a simple apt-get, though? – Eduardo Cola Jan 22 '16 at 22:51
  • 1
    you could run apt-get remove <package> then apt-get install <package> – Charles Green Jan 22 '16 at 22:57
  • I'm using only aptitude, so I don't know how to do this with apt-get. If you there were only few packages you installed with this option, and if you know which ones, you could maybe just reinstall them. But that's just an idea... – Stefan Hamcke Jan 22 '16 at 23:00

You can run apt-cache show package_you_care_about | grep Recommends.

This will show you all the recommended packages for that particular package. You can then install all the packages there.

For example, with gedit:

apt-cache show gedit | grep Recommends
output: Recommends: gir1.2-gtksource-3.0, zenity, yelp
sudo apt-get install gir1.2-gtksource-3.0 zenity yelp
  • Thanks! That's what I was looking for. Answered + upvote. – Eduardo Cola Jan 22 '16 at 23:10

To find all packages with missing recommended packages:

aptitude search '~RBrecommends:~i'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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