APT-CONFIG(8)
๐ APT-CONFIG(8) ๐
okay so this is a page from the APT manual, and yes bestie, it's literally called apt-config. Buckle up ๐
โจ NAME โจ
apt-config โ the APT Configuration Query program. she queries config, that's her whole job ๐
โจ SYNOPSIS โจ
apt-config [--empty] [--format '%f "%v";%n'] [-o=config_string]
[-c=config_file] {shell | dump | {-v | --version} |
{-h | --help}}
โจ DESCRIPTION โจ
so apt-config is an internal program โ like, she's not out here for the general public, she's the backstage crew ๐ซถ. Various portions of the APT suite use her to provide consistent configurability. She accesses the main configuration file /etc/apt/apt.conf in a manner that's easy to use for scripted applications. lowkey iconic.
Unless you give her the -h or --help option, one of the commands below must be present (no cap, she needs to know what you want):
shellโshellis used to access the configuration information from a shell script. You give it pairs of arguments: the first one is a shell variable, the second is the configuration value to query. As output it lists shell assignment commands for each value present. In a shell script you should use it like this:
OPTS="-f"
RES=`apt-config shell OPTS MyApp::options`
eval $RES
This sets the shell environment variable $OPTS to the value of MyApp::options with a default of -f. slay ๐
The configuration item may be postfixed with a /[fdbi]:
freturns file namesdreturns directoriesbreturns true or falseireturns an integer
Each of those returns is normalized and verified internally. she checks her work, periodt โจ
dumpโ just show the contents of the configuration space. that's it. that's the whole vibe ๐
โจ OPTIONS โจ
All command line options may be set using the configuration file, and the descriptions indicate the configuration option to set. For boolean options you can override the config file by using something like -f-, --no-f, -f=no or several other variations. so many variations, pick your fave ๐ธ
--emptyโ Include options which have an empty value. This is the default, so use--no-emptyto remove them from the output.--format '%f "%v";%n'โ Defines the output of each config option. Let me break it down bestie:%tgets replaced with its individual name%fgets replaced with its full hierarchical name%vgets replaced with its value- Use uppercase letters and special characters in the value and it'll be encoded, to ensure it can e.g. be safely used in a quoted-string as defined by RFC822. security queen ๐ฅ
- Additionally
%ngets replaced by a newline, and%Nby a tab - A
%can be printed by using%%(yes, escape your escapes)
-h,--helpโ Show a short usage summary. the "help me help you" option ๐ซถ-v,--versionโ Show the program version.--auditโ Show audit (and notice) messages. This overrides the quiet option, but only for notice messages, not progress ones. okay so she's loud about notices and silent about progress, we respect the boundaries ๐-c,--config-fileโ Configuration File; specify a configuration file to use. The program will read the default configuration file and then this configuration file. If configuration settings need to be set before the default configuration files are parsed, specify a file with theAPT_CONFIGenvironment variable. Seeapt.conf(5)for syntax information.-o,--optionโ Set a Configuration Option; this will set an arbitrary configuration option. The syntax is-o Foo::Bar=bar.-oand--optioncan be used multiple times to set different options. stack 'em ๐--cli-versionโ Requests a specific CLI version. This is a pattern that takes aMAJOR.MINORversion. You may omit theMINORversion, in which case the latest supported minor level will be used.
Version tracks are presented as follows: the version 3.2 has equivalent versions 0.32, 1.22, and 2.12, implementing new features for their specified major versions.
A special case is the X.9 version pattern: a version like 2.9 is followed by 3.0, but 2.10 follows directly on 2.8 โ given that we use odd version numbers as development series (2.9 is the 3.0 development series). math girlie hours ๐ง
This feature has been introduced in APT 3.1.10, and replaces the binary-specific configuration. You may use the APT::Version to similar effect on older binaries โ for example, use -o APT::Version=2 to make apt(8) behave like the 2.x series.
The default value is the current APT version for apt(8) and 0.(10 * major + minor) for the classic commands. The 0.X series is soft-deprecated and the other commands will roll over to the 2.x series in the future. โ ๏ธ heads up, she's evolving โ ๏ธ
--no-color,--colorโ Turn colors on or off. Colors are on by default on supported terminals forapt(8)and can also be disabled using theNO_COLORorAPT_NO_COLORenvironment variables, or further configured by theAPT::Colorconfiguration option and scope โ seeapt.conf(5)for information on that. aesthetic customization unlocked ๐
โจ SEE ALSO โจ
โจ DIAGNOSTICS โจ
apt-config returns zero on normal operation, and decimal 100 on error. bestie either ate or she didn't ๐
โจ BUGS โจ
APT bug page[1]. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command. she welcomes feedback, fr fr ๐
โจ AUTHORS โจ
Jason Gunthorpe
APT team
โจ NOTES โจ
- APT bug page
https://bugs.debian.org/src:apt
ok so that's the whole page bestie, you're officially an apt-config expert, no cap, iykyk ๐
๐ this has been APT 3.3.5, dated 30 November 2013 โ signing off from the APT-CONFIG(8) manual page, love u, go query some configs ๐โจ๐ฆ
๐ฆ where this page comes from
- arch rolling: apt 3.3.5-1 ยท BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms