apt-config

パッケージ管理ツールAPTの設定を行います。特別なオプションを指定していない場合、設定ファイルとして「/etc/apt/apt.conf」を使用します。


書式

apt-config [オプション ・・・]

▲PageTop

オプション

オプション名 説明
shell 設定情報の操作を行うためにシェル上でシェルスクリプトを実行させる場合に指定します。
dump 全ての設定情報の表示を行います。
-h,--help 使用方法を表示します。
-v,--version バージョン情報を表示します。
-c,--config-file 実行時に読み込む設定ファイルを指定します。
-o,--option 動作の設定を直接指定します。

▲PageTop

実行例

「APT」の設定内容を表示します。


実行結果

# apt-config dump [Enter]
APT "";
APT::Architecture "i386";
APT::GPG "";
APT::GPG::Pubring "/usr/lib/rpm/gnupg/pubring.gpg";
APT::Get "";
APT::Get::Download-Only "false";
APT::Get::Show-Upgraded "true";
APT::DistroVersion "";
Dir "/";
Dir::State "var/state/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::prefetch "prefetch";
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::Etc::rpmpriorities "rpmpriorities";
Dir::Etc::translatelist "translate.list";
Dir::Etc::translateparts "translate.list.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::rpm "/bin/rpm";
Dir::Bin::scripts "/usr/share/apt/scripts";
Dir::Locale "/usr/share/locale";
RPM "";
RPM::Allow-Duplicated-Upgrade "";
RPM::Allow-Duplicated-Upgrade:: "kernel.*";
RPM::GPG-Import "true";
RPM::Allow-Duplicated "";
RPM::Allow-Duplicated:: "^kernel$";
RPM::Allow-Duplicated:: "^kernel-smp";
RPM::Allow-Duplicated:: "^kernel-BOOT";
RPM::Allow-Duplicated:: "^kernel-devel$";
RPM::Allow-Duplicated:: "^kernel-smp-devel$";
RPM::Allow-Duplicated:: "^kernel-module";
RPM::Allow-Duplicated:: "^kernel26$";
RPM::Allow-Duplicated:: "^kernel26-smp";
RPM::Allow-Duplicated:: "^kernel26-devel";
RPM::Allow-Duplicated:: "^kernel26-smp-devel";
RPM::Allow-Duplicated:: "^kernel24$";
RPM::Allow-Duplicated:: "^kernel24-smp";
RPM::Allow-Duplicated:: "^kernel24-BOOT";
RPM::Allow-Duplicated:: "^kernel22$";
RPM::Allow-Duplicated:: "^kernel22-smp";
RPM::Allow-Duplicated:: "^mol-kmods$";
RPM::Allow-Duplicated:: "^mol-kmods22$";
RPM::Allow-Duplicated:: "^gpg-pubkey";
RPM::AutoRebuildDB "false";
Scripts "";
Scripts::AptGet "";
Scripts::AptGet::Install "";
Scripts::AptGet::Install::SelectPackage "";
Scripts::AptGet::Install::SelectPackage:: "allow-duplicated.lua";
Scripts::AptGet::DistUpgrade "";
Scripts::AptGet::DistUpgrade:: "allow-duplicated.lua";
Scripts::AptGet::Upgrade "";
Scripts::AptGet::Upgrade:: "allow-duplicated.lua";
Scripts::Synaptic "";
Scripts::Synaptic::DistUpgrade "";
Scripts::Synaptic::DistUpgrade:: "allow-duplicated.lua";
Scripts::Synaptic::Upgrade "";
Scripts::Synaptic::Upgrade:: "allow-duplicated.lua";
Scripts::PM "";
Scripts::PM::Post "";
Scripts::PM::Post:: "gpg-import.lua";
Scripts::AptCache "";
Scripts::AptCache::Command "";
Scripts::AptCache::Command:: "list-extras.lua";
Scripts::AptCache::Command:: "list-nodeps.lua";
Scripts::AptCache::Help "";
Scripts::AptCache::Help::Command "";
Scripts::AptCache::Help::Command:: "list-extras.lua";
Acquire "";
Acquire::CDROM "";
Acquire::CDROM::Copy "true";
Acquire::CDROM::Mount "/mnt/cdrom";
Acquire::CDROM::Copy-All "true";
Acquire::CDROM::Device "/dev/cdrom";
Acquire::Retrys "0";
Acquire::DistroID "Vine";
        

▲PageTop