Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.