APT−CONFIG - Online Linux Manual PageSection : 8
Updated : 30 November 2013
Source : APT 2.2.4
Note : APT
NAMEapt-config − APT Configuration Query program
SYNOPSISapt−config [−−empty] [−−format '%f "%v";%n'] [−o=config_string] [−c=config_file] {shell | dump | {−v | −−version} | {−h | −−help}}
DESCRIPTIONapt−config is an internal program used by various portions of the APT suite to provide consistent configurability. It accesses the main configuration file /etc/apt/apt.conf in a manner that is easy to use for scripted applications. Unless the −h, or −−help option is given, one of the commands below must be present. shell shell is used to access the configuration information from a shell script. It is given pairs of arguments, the first being a shell variable and the second the configuration value to query. As output it lists shell assignment commands for each value present. In a shell script it should be used as follows: OPTS="−f"
RES=`apt−config shell OPTS MyApp::options`
eval $RESThis will set the shell environment variable $OPTS to the value of MyApp::options with a default of −f. The configuration item may be postfixed with a /[fdbi]. f returns file names, d returns directories, b returns true or false and i returns an integer. Each of the returns is normalized and verified internally. dump Just show the contents of the configuration space.
OPTIONSAll command line options may be set using the configuration file, 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. −−empty Include options which have an empty value. This is the default, so use −−no−empty to remove them from the output. −−format '%f "%v";%n' Defines the output of each config option. %t will be replaced with its individual name, %f with its full hierarchical name and %v with its value. Use uppercase letters and special characters in the value will be encoded to ensure that it can e.g. be safely used in a quoted−string as defined by RFC822. Additionally %n will be replaced by a newline, and %N by a tab. A % can be printed by using %%. −h, −−help Show a short usage summary. −v, −−version Show the program version. −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 the APT_CONFIG environment variable. See apt.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. −o and −−option can be used multiple times to set different options.
SEE ALSOapt.conf(5)
DIAGNOSTICSapt−config returns zero on normal operation, decimal 100 on error.
BUGSAPT 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.
AUTHORSJason Gunthorpe APT team
NOTES 1. APT bug page http://bugs.debian.org/src:apt 0
Johanes Gumabo
Data Size : 15,106 byte
man-apt-config.8Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 236,373
Visitor ID : :
Visitor IP : 3.145.196.141 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.