apt-config is an internal program used by various portions of the APT suite to provide consistent configurability. It accesses the main configura-tion file /etc/apt/apt.conf in a manner that is easy to use by scripted applications.
apt-config Syntax
apt-config [options] command
If you run directly from command line you should see the following screen
# apt-config
apt 0.6.45 for linux i386 compiled on Jul 27 2006 00:56:43
Usage: apt-config [options] command
apt-config is a simple tool to read the APT config file
Commands:
shell – Shell mode
dump – Show the configuration
Options:
-h This help text.
-c=? Read this configuration file
-o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
If you want to see the configuration run the following command
# apt-config dump
APT “”;
APT::Architecture “i386”;
APT::Build-Essential “”;
APT::Build-Essential:: “build-essential”;
Dir “/”;
Dir::State “var/lib/apt/”;
Dir::State::lists “lists/”;
Dir::State::cdroms “cdroms.list”;
Dir::State::userstatus “status.user”;
Dir::State::status “/var/lib/dpkg/status”;
Dir::Cache “var/cache/apt/”;
Dir::Cache::archives “archives/”;
Dir::Cache::srcpkgcache “srcpkgcache.bin”;
Dir::Cache::pkgcache “pkgcache.bin”;
Dir::Etc “etc/apt/”;
Dir::Etc::sourcelist “sources.list”;
Dir::Etc::sourceparts “sources.list.d”;
Dir::Etc::vendorlist “vendors.list”;
Dir::Etc::vendorparts “vendors.list.d”;
Dir::Etc::main “apt.conf”;
Dir::Etc::parts “apt.conf.d”;
Dir::Etc::preferences “preferences”;
Dir::Bin “”;
Dir::Bin::methods “/usr/lib/apt/methods”;
Dir::Bin::dpkg “/usr/bin/dpkg”;
DPkg “”;
DPkg::Pre-Install-Pkgs “”;
DPkg::Pre-Install-Pkgs:: “/usr/sbin/dpkg-preconfigure –apt || true”;
DPkg::Post-Invoke “”;
DPkg::Post-Invoke:: “if [ -x /usr/sbin/localepurge ] && [ $(ps w -p $PPID | grep -c remove) != 1 ]; then /usr/sbin/localepurge; else exit 0; fi”;
If you want to know more options available for apt-config check man page