Saturday, September 19, 2020

How not to install suggested packages on Debian or Ubuntu Linux using apt-get?

When we use apt-get to install a package, apt-get also installs a list of suggested package. Sometimes we want to have more control, and don't wish to install the suggested packages. To do this, we simply include an additional command line option, i.e., --no-install-recommends, as in,

  sudo apt-get install --no-install-recommends PACKAGE_NAME
  

For example, we want to install python3-pip package, we issue

  sudo apt-get install --no-install-recommends python3-pip
  

1 comment: