APT.CONF(5) APT APT.CONF(5) apt.conf - APT /etc/apt/apt.conf APT APT APT 1. APT_CONFIG () 2. Dir::Etc::Parts "conf" (-) (_) (.) Dir::Ignore-Files-Silently APT 3. Dir::Etc::Main 4. 5. 2 APT::Get::Assume-Yes APT Get Syntactically the configuration language is modeled after what the ISC tools such as bind and dhcp use. Lines starting with // are treated as comments (ignored), as well as all text between /* and */, just like C/C++ comments. Lines starting with # are also treated as comments. Each line is of the form APT::Get::Assume-Yes "true";. The quotation marks and trailing semicolon are required. The value must be on one line, and there is no kind of string concatenation. Values must not include backslashes or extra quotation marks. Option names are made up of alphanumeric characters and the characters "/-:._+". A new scope can be opened with curly braces, like this: APT { Get { Assume-Yes "true"; Fix-Broken "true"; }; }; 1 DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; /usr/share/doc/apt/examples/configure-index dpkg::pre-install-pkgs DPkg::Pre-Install-Pkgs #include () #clear 2 #include #clear () #clear ( :: ) APT -o (: APT::Get::Assume-Yes) :: () :: 1 1 ( :: ) "::" () "::" APT APT APT APT Architecture - apt Architectures amd64 (x86-64 ) CPU i386 (x86) (APT::Architecture) dpkg --add-architecture Color This scope defines colors and styles. The basic colors supported are red, green, yellow, blue, magenta, cyan, and white. The subscope action defines the colors for package lists in install and similar commands. The following options may be set: APT::Color::Action::Upgrade, APT::Color::Action::Install, APT::Color::Action::Install-Dependencies, APT::Color::Action::Downgrade, APT::Color::Action::Remove; corresponding to their lists in the apt(8) output. Each color may reference one or more other color options by name, relative to APT::Color. Their escape sequences will be combined. APT::Color::Bold "\x1B[1m"; APT::Color::Action::Install "cyan"; APT::Color::Action::Upgrade "bold action::install"; Colors may be turned on or off completely by setting APT::Color to yes or no, by utilizing NO_COLOR or APT_NO_COLOR environment variables, or using the --color, --no-color command-line options. Compressor apt 1 .reversed apt rev : APT::Compressor::rev { Name "rev"; Extension ".reversed"; Binary "rev"; CompressArg {}; UncompressArg {}; Cost "10"; }; Build-Profiles profile.dpkg- buildpackage(1) DEB_BUILD_PROFILES Default-Release 'stable', 'testing', 'unstable', 'bookworm', 'trixie', '4.0', '5.0*' apt_preferences(5) Snapshot Snapshot to use for all repositories configured with Snapshot: yes. See also sources.list(5), the --snapshot option that sets this value, and Acquire::Snapshots::URI below. Ignore-Hold - Clean-Installed on autoclean off APT Immediate-Configure on dpkg(1) APT A B C dpkg(1) (: B ) A A A (immediate) APT 1 dist-upgrade install APT Force-LoopBreak (essential) (Conflicts) // (Pre-Depend) tar, gzip, libc, dpkg, dash Cache-Start, Cache-Grow, Cache-Limit APT 0.7.26 Cache-Start APT 20971520 (~20 MB) APT Cache-Grow Cache-Start 1048576 (~1 MB) Cache-Limit Cache-Limit 0 Cache-Grow 0 Build-Essential Get Get apt-get(8) apt-get(8) Cache Cache apt-cache(8) apt-cache(8) CDROM CDROM apt-cdrom(8) apt-cdrom(8) NeverAutoRemove Never autoremove packages that match the regular expression(s). Protect-Kernels This option tells apt autoremove that kernels are protected and defaults to true. In case kernels are not protected they are treated as any other package. VersionedKernelPackages Define the regular expression(s) for versioned kernel packages. Based on these expressions a rule set is injected into apt similar to APT::NeverAutoRemove regular expressions. NeverAutoRemove::KernelCount Keep a custom amount of kernels when autoremoving and defaults to 2, meaning two kernels are kept. Apt will always keep the running kernel and the latest one. If the latest kernel is the same as the running kernel, the second latest kernel is kept. Because of this, any value lower than 2 will be ignored. If you want only the latest kernel, you should set APT::Protect-Kernels to false. ACQUIRE Acquire (acquire) (sources.list(5) ) Check-Date Security related option defaulting to true, enabling time-related checks. Disabling it means that the machine's time cannot be trusted, and APT will hence disable all time-related checks, such as Check-Valid-Until and verifying that the Date field of a release file is not in the future. Max-FutureTime Maximum time (in seconds) before its creation (as indicated by the Date header) that the Release file should be considered valid. The default value is 10. Archive specific settings can be made by appending the label of the archive to the option name. Preferably, the same can be achieved for specific sources.list(5) entries by using the Date-Max-Future option there. Check-Valid-Until true Release Valid-Until Release Max-ValidTime sources.list(5) Check-Valid-Until Max-ValidTime Release (Date ) () Release Valid-Until 2 0 Valid-Until-Max sources.list(5) Min-ValidTime Release (Date ) () Valid-Until () Valid-Until-Min sources.list(5) AllowTLS Allow use of the internal TLS support in the http method. If set to false, this completely disables support for TLS in apt's own methods (excluding the curl-based https method). No TLS-related functions will be called anymore. PDiffs (Packages ) PDiffs True PDiffs sources.list(5) PDiffs FileLimit PDiff SizeLimit By-Hash (Packages ) PDiffs True By-Hash sources.list(5) Queue-Mode - Queue-Mode APT host access host 1 access URI 1 Retries 0 APT Source-Symlinks true true http https The options in these scopes configure APT's acquire transports for the protocols HTTP and HTTPS and are documented in the apt- transport-http(1) and apt-transport-https(1) manpages respectively. ftp ftp::Proxy FTP URI ftp://[[user][:pass]@]host[:port]/ ftp::Proxy:: DIRECT ftp_proxy FTP ftp::ProxyLogin /usr/share/doc/apt/examples/configure-index URI $(PROXY_USER), $(PROXY_PASS), $(SITE_USER), $(SITE_PASS), $(SITE), $(SITE_PORT) timeout FTP () ftp_proxy HTTP URL FTP over HTTP http FTP over HTTP ForceExtended RFC2428 EPSV EPRT false IPv6 true IPv4 FTP RFC2428 cdrom cdrom URI /etc/fstab CD-ROM ( DVD ) cdrom::Mount fstab cdrom /cdrom/::Mount "foo"; UMount gpgv GPGV URI gpgv gpgv::Options CompressionTypes acquire Packages acquire xz gzip ( APT::Compressor) Acquire::CompressionTypes::FileExtension "Methodname"; Order Acquire::CompressionTypes::Order:: "gz"; gzip xz gzip bzip2 Acquire::CompressionTypes::Order { "xz"; "gz"; }; bz2 Dir::Bin::Methodname apt bzip2 () Dir::Bin::bzip2 "/bin/bzip2"; () uncompressed GzipIndexes gzip (Packages, Sources, Translations) gzip CPU false Languages Languages Translation APT APT Languages Translation "environment" "en" "environment" LC_MESSAGES 2LC_MESSAGES "C" Translation-en () APT Translation Acquire::Languages=none "none" Translation APT "en, de" "de, en" "fr" ("fr, de, en" ) APT Acquire::Languages { "environment"; "de"; "en"; "none"; "fr"; }; : (: ) APT /var/lib/apt/lists/ Translation ( "none" ) ForceIPv4 IPv4 ForceIPv6 IPv6 MaxReleaseFileSize Release/Release.gpg/InRelease 10MB EnableSrvRecords apt RFC 2782 DRS SRV "true" AllowInsecureRepositories false apt-secure(8) AllowWeakRepositories false apt-secure(8) AllowDowngradeToInsecureRepositories GPG false apt- secure(8) Changelogs::URI URI Acquire::Changelogs::URI::Label::LABEL Acquire::Changelogs::URI::Origin::ORIGIN Label/Origin Acquire::Changelogs::URI::Override::Label::LABEL Acquire::Changelogs::URI::Override::Origin::ORIGIN @CHANGEPATH@ URI : 1. (main) 2. 'lib' ( 4 )3. 4. 5. () ('/') ('_') 'no' Snapshots::URI Like changelogs, snapshots can only be acquired if an URI is known from where to get them. Preferable the Release file indicates this in a 'Snapshots' field. If this isn't available the Label/Origin field of the Release file is used to check if a Acquire::Snapshots::URI::Label::LABEL or Acquire::Snapshots::URI::Origin::ORIGIN option exists and if so this value is taken. The value in the Release file can be overridden with Acquire::Snapshots::URI::Override::Label::LABEL or Acquire::Snapshots::URI::Override::Origin::ORIGIN. The value should be a normal URI to a directory, except that the snapshot ID replaced with the placeholder @SNAPSHOTID@. The special value 'no' is available for this option indicating that this source cannot be used to acquire snapshots from. Another source will be tried if available in this case. apt APT::Get::Show-Versions apt apt-get Binary::specific-binary apt APT::Get::Show-Versions Binary::apt::APT::Get::Show-Versions Dir::State lists status dpkg(1) preferences APT preferences Dir::State / ./ Dir::Cache Dir::Cache::archives srcpkgcache pkgcache pkgcache srcpkgcache "" srcpkgcache pkgcache Dir::State Dir::Cache Dir::Etc sourcelist main (APT_CONFIG ) Dir::Parts Dir::Bin Dir::Bin::Methods gzip, bzip2, lzma, dpkg, apt-get dpkg-source dpkg-buildpackage, apt-cache RootDir RootDir RootDir /tmp/staging Dir::State::status /var/lib/dpkg/status status /tmp/staging/var/lib/dpkg/status Dir Ignore-Files-Silently APT .disabled, ~, .bak, .dpkg-[a-z]+ DSELECT APT dselect(1) APT DSelect Clean - always, prompt, auto, pre-auto, never always prompt prompt () auto () pre-auto options install apt-get(8) Updateoptions update apt-get(8) PromptAfterUpdate true dselect(1) [U]pdate APT DPKG(1) APT dpkg(1) DPkg options dpkg(1) dpkg(1) Path This is a string that defines the PATH environment variable used when running dpkg. It may be set to any valid value of that environment variable; or the empty string, in which case the variable is not changed. Pre-Invoke, Post-Invoke dpkg(1) options /bin/sh APT Pre-Install-Pkgs dpkg(1) options /bin/sh APT APT .deb 1 2 : VERSION 2 APT key=value (key value ) % key::=value 2 5 : () (< > = ) "-" (- < 1.23.4) "**CONFIGURE**" "**REMOVE**" .deb 3 "-" MultiArch "same""foreign""allowed" "none" "none" "no" cmd DPkg::Tools::options::cmd::Version 1 APT DPkg::Tools::options::cmd::InfoFD 0 0.9.11 APT_HOOK_INFO_FD Run-Directory APT dpkg(1) / Build-options dpkg-buildpackage(1) DPkg::ConfigurePending dpkg(1) APT dpkg --configure --pending APT () PERIODIC ARCHIVES APT::Periodic APT::Archives /usr/lib/apt/apt.systemd.daily apt Debug:: apt apt o Debug::pkgProblemResolver dist-upgrade, upgrade, install, remove, purge o Debug::NoLocking root ( apt-get -s install) o Debug::pkgDPkgPM apt dpkg(1) o Debug::IdentCdrom CD-ROM ID statfs apt Debug::Acquire::cdrom cdrom:// Debug::Acquire::ftp FTP Debug::Acquire::http HTTP Debug::Acquire::https HTTPS Debug::Acquire::gpgv gpg Debug::aptcdrom CD-ROM Debug::Hashes apt Debug::IdentCDROM CD-ROM ID statfs CD-ROM Debug::NoLocking apt-get update Debug::pkgAcquire Debug::pkgAcquire::Auth Debug::pkgAcquire::Diffs Debug::pkgAcquire::RRed apt Debug::pkgAcquire::Worker Debug::pkgAutoRemove Debug::pkgDepCache::AutoInstall apt (Debug::pkgProblemResolver ) apt-get install Debug::pkgDepCache::Marker ProblemResolver 2 MarkKeep, MarkDelete, MarkInstall package-name d.e.f | x.y.z> (section) a.b.c d.e.fx.y.z (pin ) section Debug::pkgDPkgPM dpkg(1) Debug::pkgDPkgProgressReporting dpkg(1) Debug::pkgOrderList apt dpkg(1) Debug::pkgPackageManager dpkg(1) Debug::pkgPolicy Debug::pkgProblemResolver () Debug::pkgProblemResolver::ShowScores pkgProblemResolver Debug::pkgDepCache::Marker Debug::sourceList /etc/apt/vendors.list Debug::RunScripts apt DPkg::{Pre,Post}-Invoke APT::Update::{Pre,Post}-Invoke /usr/share/doc/apt/examples/configure-index /etc/apt/apt.conf APT : Dir::Etc::Main /etc/apt/apt.conf.d/ APT : Dir::Etc::Parts apt-cache(8), apt-config(8), apt_preferences(5). APT [1] APT /usr/share/doc/debian/bug-reporting.txt reportbug(1) (2003-2006,2009-2012), Takuma Yamada (2016), Debian JP Documentation ML Gunthorpe Jason[FAMILY Given] [FAMILY Given] Burrows Daniel[FAMILY Given] Debug::* 1. APT https://bugs.debian.org/src:apt APT 2.9.6 30 5 2024 APT.CONF(5)