6

I can edit

/etc/apt/apt.conf

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?

1

1 Answer 1

10

From man 8 apt-get:

   --no-install-recommends
       Do not consider recommended packages as a dependency for installing. Configuration Item: APT::Install-Recommends.
4
  • 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, 2014 at 19:49
  • For that you might try: apt-get -o apt::install-recommends=true Mar 30, 2014 at 19:55
  • @rubo77 that should be what my command in my previous comment does, overriding the false setting in apt.conf. Mar 30, 2014 at 21:04
  • Ah ok, I see... I was too fast in judjing. the option is set with -o ... OK thanks
    – rubo77
    Mar 30, 2014 at 21:05

You must log in to answer this question.

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