Ubuntu – How to install recommends using gdebi

gdebi

Gdebi apparently doesn't install recommend packages by default, it only installs dependencies. I tried

sudo gdebi -o="--install-recommends" package.deb

but it doesn't work.

How to install also the recommend packages using gdebi?

Best Answer

The -o option of gdebi is not meant to pass command-line options to apt-get, but configuration options. Thus, to install recommended packages, you should use:

gdebi -o "APT::Install-Recommends=1" ...

Since,

  1. man apt-get says:

    --no-install-recommends
       Do not consider recommended packages as a dependency for
       installing. Configuration Item: APT::Install-Recommends.
    
  2. From How to not install recommended and suggested packages?,

    The correct syntax in recent versions appears to be:

    APT::Install-Suggests "0";
    APT::Install-Recommends "0";
    
  3. And comment #7 on this Launchpad question says:

    For anyone googling, I can't give the correct format for APT::Get options, however the following worked for me for APT::Install- options.

    gdebi -o APT::Install-Recommends=0 -o APT::Install-Suggests=0 .....