Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I can edit


and add the line:

apt::install-recommends "false";

But that will always skip recommendations.

How can I do this only once for the installation to a certain package without changing the config of apt?

share|improve this question
Related: unix.stackexchange.com/q/77053/4671 – Faheem Mitha Mar 30 '14 at 19:41
up vote 6 down vote accepted

From man 8 apt-get:

       Do not consider recommended packages as a dependency for installing. Configuration Item: APT::Install-Recommends.
share|improve this answer
In case I set the config in apt.conf I couldn't find an option like --install-recommends unix.stackexchange.com/questions/122289/… – rubo77 Mar 30 '14 at 19:49
For that you might try: apt-get -o apt::install-recommends=true – cpugeniusmv Mar 30 '14 at 19:55
@rubo77 that should be what my command in my previous comment does, overriding the false setting in apt.conf. – cpugeniusmv Mar 30 '14 at 21:04
Ah ok, I see... I was too fast in judjing. the option is set with -o ... OK thanks – rubo77 Mar 30 '14 at 21:05

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.