48

On Ubuntu when you install a package, there can be dependencies, recommendations and suggestions. For example: virtualbox-ose has adduser as dependency, libgl1 as recommendation and libpulse0 as suggestion.

What is the difference between recommendations and suggestions?

Recommendations are standard installed with apt. This can be prevented using the switch --no-install-recommends

Second question: How can you force to install suggestions with apt?

1

3 Answers 3

40

See Debian's FAQ about this. Ubuntu is based on Debian, so it should be the same:

  • Package A recommends Package B, if the package maintainer judges that most users would not want A without also having the functionality provided by B.
  • Package A suggests Package B if B contains files that are related to (and usually enhance) the functionality of A.
2
  • 1
    Thanks! Is there a way (command-line switch) to automatically install suggested packages?
    – Peter Smit
    Nov 15, 2009 at 13:16
  • 1
    @PeterSmit you can add the option -o APT::Install-Suggests=true to the aptitude install PKGNAME command line to tell it to install suggested packages. Jun 30, 2014 at 18:38
5

Though it is a very old question, I want to write an answer here because once I searched the same question and reached here via google.

From man deb-control or https://linux.die.net/man/5/deb-control, it explains their meanings:

Recommends: <package list>
Lists packages that would be found together with this one in all but unusual
installations. The package maintenance software will warn the user if they
install a package without those listed in its Recommends field.

Suggests: <package list>
Lists packages that are related to this one and can perhaps enhance its
usefulness, but without which installing this package is perfectly reasonable.

It provides a option --install-suggests by apt-get now to install suggested packages. And it could be passed to apt.

0

You can avoid recommended packages from being included in an install in Synaptic via Settings, Preferences, General tab: Untick "Consider recommended packages as dependencies".

With apt-get, you can include the switch "--no-install-recommends".

Dependencies must be present to run the package. I can't tell you what specifically qualifies a package as a recommended one other than what the adjective suggests.

A CLI method of displaying dependencies and suggests is: apt-cache show Example: apt-cache show gimp

1
  • 5
    What about the main question. What is the difference between recommendations and suggestions? You don't mention suggestions at all!
    – Peter Smit
    Nov 13, 2009 at 17:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .