Skip to content

Instantly share code, notes, and snippets.

@swyngaard
Created March 7, 2017 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swyngaard/768bcac852cb609976484bdec675c6a2 to your computer and use it in GitHub Desktop.
Save swyngaard/768bcac852cb609976484bdec675c6a2 to your computer and use it in GitHub Desktop.
APT disable installation of recommended packages by default
APT::Install-Recommends "0";
APT::Install-Suggests "0";
Disable the installation of recommended packages by default. This is especially useful for servers where the extra packages are not required.
Create the file /etc/apt/apt.conf.d/01norecommend with the following contents:
APT::Install-Recommends "0";
APT::Install-Suggests "0";
Update the apt-cache:
$ sudo apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment