Skip to content

Instantly share code, notes, and snippets.

@austintraver
Last active June 3, 2021 19:53
Show Gist options
  • Save austintraver/98a12e75ac8bedd646e384b3fcf68ecf to your computer and use it in GitHub Desktop.
Save austintraver/98a12e75ac8bedd646e384b3fcf68ecf to your computer and use it in GitHub Desktop.
Convenience configuration for Docker files, so that I don't have to keep typing `--no-install-recommends`
# From man://apt.conf(5)
#
# /etc/apt/apt.conf is the main configuration file shared by all the tools in the APT suite
# of tools, though it is by no means the only place options can be set. The suite also
# shares a common command line parser to provide a uniform environment.
#
# When an APT tool starts up, it will check the environment for the parameter
# APT_CONFIG, and read in values from that location if there are any. Else, `apt`
# will default to searching /etc/apt/apt.conf and /etc/apt/apt.conf.d/* for
# any additional configurations.
APT {
Install-Recommends "true";
Install-Suggests "false";
Get {
Install-Recommends "true";
Install-Suggests "false";
Assume-Yes "true";
AutomaticRemove "true";
Upgrade-Allow-New "true";
}
}
# After you have finished making configurations,
# you can verify that this file is working properly
# by entering the following command:
#
# apt-config dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment