Provided by:
apt_0.8.16~exp12ubuntu10_i386 
NAME
apt.conf - APT
apt.conf APT
APT
1. APT_CONFIG ()
2. all files in Dir::Etc::Parts in alphanumeric ascending order which
have either no or "conf" as filename extension and which only
contain alphanumeric, hyphen (-), underscore (_) and period (.)
characters. Otherwise APT will print a notice that it has ignored a
file if the file doesn't match a pattern in the
Dir::Ignore-Files-Silently configuration list - in this case it
will be silently ignored.
3. Dir::Etc::Main
4.
2 APT::Get::Assume-Yes APT Get
bind dhcp ISC // () C/C++ /* */
APT::Get::Assume-Yes
"true";
1 "\" "/-:._+"
APT {
Get {
Assume-Yes "true";
Fix-Broken "true";
};
};
1
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
/usr/share/doc/apt/examples/apt.conf
/usr/share/doc/apt/examples/configure-index.gz
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
All Architectures the system supports. Processors implementing the
amd64 are e.g. also able to execute binaries compiled for i386;
This list is use when fetching files and parsing package lists. The
internal default is always the native architecture
(APT::Architecture) and all foreign architectures it can retrieve
by calling dpkg --print-foreign-architectures.
Default-Release
'stable', 'testing', 'unstable', 'squeeze', 'wheezy', '4.0',
'5.0*' apt_preferences(5)
Ignore-Hold
-
Clean-Installed
autoclean on off APT
Immediate-Configure
APT dpkg(1) APT A B A dpkg ( B ) A A A APT dist-upgrade APT
install APT
Force-LoopBreak
(essential) (Conflicts) // (Pre-Depend) tar, gzip, libc, dpkg,
bash
Cache-Start, Cache-Grow and Cache-Limit
APT uses since version 0.7.26 a resizable memory mapped cache file
to store the 'available' information. Cache-Start acts as a hint
to which size the Cache will grow and is therefore the amount of
memory APT will request at startup. The default value is 20971520
bytes (~20 MB). Note that these amount of space need to be
available for APT otherwise it will likely fail ungracefully, so
for memory restricted devices these value should be lowered while
on systems with a lot of configured sources this might be
increased. Cache-Grow defines in byte with the default of 1048576
(~1 MB) how much the Cache size will be increased in the event the
space defined by Cache-Start is not enough. These value will be
applied again and again until either the cache is big enough to
store all information or the size of the cache reaches the
Cache-Limit. The default of Cache-Limit is 0 which stands for no
limit. If Cache-Grow is set to 0 the automatic grow of the cache is
disabled.
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)
ACQUIRE
Acquire URI .PP Check-Valid-Until
Security related option defaulting to true as an expiring
validation for a Release file prevents longtime replay attacks and
can e.g. also help users to identify no longer updated mirrors -
but the feature depends on the correctness of the time on the user
system. Archive maintainers are encouraged to create Release files
with the Valid-Until header, but if they don't or a stricter value
is volitional the following Max-ValidTime option can be used.
Max-ValidTime
Seconds the Release file should be considered valid after it was
created (indicated by the Date header). If the Release file itself
includes a Valid-Until header the earlier date of the two is used
as the expiration date. The default value is 0 which stands for
"for ever". Archive specific settings can be made by appending the
label of the archive to the option name.
Min-ValidTime
Minimum of seconds the Release file should be considered valid
after it was created (indicated by the Date header). Use this if
you need to use a seldomly updated (local) mirror of a more regular
updated archive with a Valid-Until header instead of completely
disabling the expiration date checking. Archive specific settings
can and should be used by appending the label of the archive to the
option name.
PDiffs
Packages Sources PDiffs True
Two sub-options to limit the use of PDiffs are also available: With
FileLimit can be specified how many PDiff files are downloaded at
most to patch a file. SizeLimit on the other hand is the maximum
percentage of the size of all patches compared to the size of the
targeted file. If one of these limits is exceeded the complete file
is downloaded instead of the patches.
Queue-Mode
- Queue-Mode APT host access host 1 access URI 1
Retries
0 APT
Source-Symlinks
true true
http
HTTP URI - http::Proxy http http://[[user][:pass]@]host[:port]/
http::Proxy::<host> DIRECT http_proxy
HTTP/1.1 3 No-Cache Max-Age 1 Debian No-Store .deb ) Squid 2.0.2
timeout
RFC (Squid 2.0.2 ) Acquire::http::Pipeline-Depth APT 0 5 TCP 0
RFC 2068
Acquire::http::Dl-Limit 0 ()
Acquire::http::User-Agent http User-Agent
https
HTTPS URI - AllowRedirectDl-Limit http https http Pipeline-Depth
CaInfo <host>::CaInfo Verify-Peer <host>::Verify-Peer Verify-Host
<host>::Verify-Host SslCert <host>::SslCert SslKey <host>::SslKey
SslForceVersion SSL 'TLSv1' 'SSLv3' <host>::SslForceVersion
ftp
FTP URI - ftp::Proxy ftp://[[user][:pass]@]host[:port]/
ftp::Proxy::<host> DIRECT ftp_proxy ftp ftp::ProxyLogin
/usr/share/doc/apt/examples/configure-index.gz $(PROXY_USER)
$(PROXY_PASS) $(SITE_USER) $(SITE_PASS) $(SITE) $(SITE_PORT) URI
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 - CDROM URI /etc/fstab CDROM cdrom::Mount (SMB mount )
fstab cdrom
/cdrom/::Mount "foo";
UMount
gpgv
GPGV URI - GPGV URI gpgv gpgv::Options gpgv
CompressionTypes
acquire Packages acquire bzip2, lzma, gzip
Acquire::CompressionTypes::FileExtension "Methodname";
Order
Acquire::CompressionTypes::Order:: "gz";
gzip bzip2 lzma lzma gzip bzip2
Acquire::CompressionTypes::Order { "lzma"; "gz"; };
bz2
Note that at run time the Dir::Bin::Methodname will be checked: If
this setting exists the method will only be used if this file
exists, e.g. for the bzip2 method (the inbuilt) setting is:
Dir::Bin::bzip2 "/bin/bzip2";
Note also that list entries specified on the command line will be
added at the end of the list specified in the configuration files,
but before the default entries. To prefer a type in this case over
the ones specified in the configuration files you can set the
option direct - not in list style. This will not override the
defined list, it will only prefix the list with this type.
The special type uncompressed can be used to give uncompressed
files a preference, but note that most archives don't provide
uncompressed files so this is mostly only useable for local
mirrors.
GzipIndexes
When downloading gzip compressed indexes (Packages, Sources, or
Translations), keep them gzip compressed locally instead of
unpacking them. This saves quite a lot of disk space at the expense
of more CPU requirements when building the local package caches.
False by default.
Languages
The Languages subsection controls which Translation files are
downloaded and in which order APT tries to display the
Description-Translations. APT will try to display the first
available Description in the Language which is listed at first.
Languages can be defined with their short or long Languagecodes.
Note that not all archives provide Translation files for every
Language - especially the long Languagecodes are rare, so please
inform you which ones are available before you set here impossible
values.
The default list includes "environment" and "en". "environment" has
a special meaning here: It will be replaced at runtime with the
languagecodes extracted from the LC_MESSAGES environment variable.
It will also ensure that these codes are not included twice in the
list. If LC_MESSAGES is set to "C" only the Translation-en file (if
available) will be used. To force apt to use no Translation file
use the setting Acquire::Languages=none. "none" is another special
meaning code which will stop the search for a fitting Translation
file. This can be used by the system administrator to let APT know
that it should download also this files without actually use them
if the environment doesn't specify this languages. So the following
example configuration will result in the order "en, de" in an
english and in "de, en" in a german localization. Note that "fr" is
downloaded, but not used if APT is not used in a french
localization, in such an environment the order would be "fr, de,
en".
Acquire::Languages { "environment"; "de"; "en"; "none"; "fr"; };
Dir::State lists status dpkg preferences APT Dir::State / ./
Dir::Cache Dir::Cache::archives srcpkgcache pkgcache 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 Dir:: RootDir RootDir /tmp/staging Dir::State::status
/var/lib/dpkg/status status /tmp/staging/var/lib/dpkg/status
The Ignore-Files-Silently list can be used to specify which files APT
should silently ignore while parsing the files in the fragment
directories. Per default a file which end with .disabled, ~, .bak or
.dpkg-[a-z]+ is silently ignored. As seen in the last default value
these patterns can use regular expression syntax.
DSELECT APT
dselect(1) APT DSelect
Clean
- always, prompt, auto, pre-auto, never always prompt prompt ()
auto () pre-auto
install apt-get(8)
Updateoptions
update apt-get(8)
PromptAfterUpdate
true dselect(1) [U]pdate
APT DPKG
APT dpkg(1) DPkg
dpkg dpkg(1)
Pre-Invoke, Post-Invoke
dpkg(1) options /bin/sh APT
Pre-Install-Pkgs
dpkg(1) options /bin/sh APT APT .deb
2 ( APT ) DPkg::Tools::options::cmd::Version 2 2 cmd
Pre-Install-Pkgs
Run-Directory
APT dpkg /
Build-options
dpkg-buildpackage(1)
dpkg ()
APT can call dpkg in a way so it can make aggressive use of triggers
over multiple calls of dpkg. Without further options dpkg will use
triggers only in between his own run. Activating these options can
therefore decrease the time needed to perform the install / upgrade.
Note that it is intended to activate these options per default in the
future, but as it changes the way APT calling dpkg drastically it needs
a lot more testing. These options are therefore currently experimental
and should not be used in productive environments. Also it breaks the
progress reporting so all frontends will currently stay around half (or
more) of the time in the 100% state while it actually configures all
packages.
Note that it is not guaranteed that APT will support these options or
that these options will not cause (big) trouble in the future. If you
have understand the current risks and problems with these options, but
are brave enough to help testing them create a new configuration file
and test a combination of options. Please report any bugs, problems and
improvements you encounter and make sure to note which options you have
used in your reports. Asking dpkg for help could also be useful for
debugging proposes, see e.g. dpkg --audit. A defensive option
combination would be
DPkg::NoTriggers "true";
PackageManager::Configure "smart";
DPkg::ConfigurePending "true";
DPkg::TriggersPending "true";
DPkg::NoTriggers
Add the no triggers flag to all dpkg calls (except the
ConfigurePending call). See dpkg(1) if you are interested in what
this actually means. In short: dpkg will not run the triggers when
this flag is present unless it is explicitly called to do so in an
extra call. Note that this option exists (undocumented) also in
older apt versions with a slightly different meaning: Previously
these option only append --no-triggers to the configure calls to
dpkg - now apt will add these flag also to the unpack and remove
calls.
PackageManager::Configure
Valid values are "all", "smart" and "no". "all" is the default
value and causes APT to configure all packages explicit. The
"smart" way is it to configure only packages which need to be
configured before another package can be unpacked (Pre-Depends) and
let the rest configure by dpkg with a call generated by the next
option. "no" on the other hand will not configure anything and
totally rely on dpkg for configuration (which will at the moment
fail if a Pre-Depends is encountered). Setting this option to
another than the all value will implicitly activate also the next
option per default as otherwise the system could end in an
unconfigured status which could be unbootable!
DPkg::ConfigurePending
If this option is set apt will call dpkg --configure --pending to
let dpkg handle all required configurations and triggers. This
option is activated automatic per default if the previous option is
not set to all, but deactivating could be useful if you want to run
APT multiple times in a row - e.g. in an installer. In these
sceneries you could deactivate this option in all but the last run.
DPkg::TriggersPending
Useful for smart configuration as a package which has pending
triggers is not considered as installed and dpkg treats them as
unpacked currently which is a dealbreaker for Pre-Dependencies (see
debbugs #526774). Note that this will process all triggers, not
only the triggers needed to configure this package.
PackageManager::UnpackAll
As the configuration can be deferred to be done at the end by dpkg
it can be tried to order the unpack series only by critical needs,
e.g. by Pre-Depends. Default is true and therefore the "old" method
of ordering in various steps by everything. While both method were
present in earlier APT versions the OrderCritical method was
unused, so this method is very experimental and needs further
improvements before becoming really useful.
OrderList::Score::Immediate
Essential packages (and there dependencies) should be configured
immediately after unpacking. It will be a good idea to do this
quite early in the upgrade process as these these configure calls
require currently also DPkg::TriggersPending which will run quite a
few triggers (which maybe not needed). Essentials get per default a
high score but the immediate flag is relatively low (a package
which has a Pre-Depends is higher rated). These option and the
others in the same group can be used to change the scoring. The
following example shows the settings with there default values.
OrderList::Score {
Delete 500;
Essential 200;
Immediate 10;
PreDepends 50;
};
PERIODIC ARCHIVES
APT::Periodic APT::Archives /etc/cron.daily/apt apt
Enabling options in the Debug:: section will cause debugging
information to be sent to the standard error stream of the program
utilizing the apt libraries, or enable special program modes that are
primarily useful for debugging the behavior of apt. Most of these
options are not interesting to a normal user, but a few may be:
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 CDROM ID statfs gain
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::BuildDeps
apt-get(8)
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
Generate debug messages describing which package is marked as
keep/install/remove while the ProblemResolver does his work. Each
addition or deletion may trigger additional actions; they are shown
indented two additional space under the original entry. The format
for each line is MarkKeep, MarkDelete or MarkInstall followed by
package-name <a.b.c -> d.e.f | x.y.z> (section) where a.b.c is the
current version of the package, d.e.f is the version considered for
installation and x.y.z is a newer version, but not considered for
installation (because of a low pin score). The later two can be
omitted if there is none or if it is the same version as the
installed. section is the name of the section the package appears
in.
Debug::pkgInitConfig
Debug::pkgDPkgPM
dpkg(1)
Debug::pkgDPkgProgressReporting
dpkg(1)
Debug::pkgOrderList
apt dpkg(1)
Debug::pkgPackageManager
dpkg(1)
Debug::pkgPolicy
Debug::pkgProblemResolver
()
Debug::pkgProblemResolver::ShowScores
Display a list of all installed packages with their calculated
score used by the pkgProblemResolver. The description of the
package is the same as described in Debug::pkgDepCache::Marker
Debug::sourceList
/etc/apt/vendors.list
/usr/share/doc/apt/examples/configure-index.gz
/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)
<nabetaro@debian.or.jp> (2003-2006,2009-2010), Debian JP Documentation
ML <debian-doc@debian.or.jp>
AUTHORS
Jason Gunthorpe
APT
Daniel Burrows <dburrows@debian.org>
Debug::*.
NOTES
1. APT
http://bugs.debian.org/src:apt