apt [-h] [-o=config_string] [-c=config_file]
[-t=target_release] [-a=architecture]
{update| list patt | search patt | show patt
| edit-sources patt |
| install pkg
[{=pkg_version_number | /target_release}]…
| upgrade | full-upgrade
{-v | --version}
| remove pkg… | {-h | --help}}
Provides a high-level commandline interface for the package management system. Options are better for interactive usage compared to other APT tools.
update |
Features are available in dedicated tools like apt-get and apt-cache.
Default value (see apt.conf
are different in some cases
apt
should be avoided in scripts.
apt-get, apt-cache, sources.list, apt.conf, apt-config,
The /usr/share/doc/apt-doc APT User's guide in
apt_preferences, the APT Howto.
/etc/apt: apt.conf.d/ reformatted
01autoremove APT { NeverAutoRemove { "^firmware-linux.*"; "^linux-firmware$"; }; VersionedKernelPackages { # linux kernels "linux-image"; "linux-headers"; "linux-image-extra"; "linux-signed-image"; # kfreebsd kernels "kfreebsd-image"; "kfreebsd-headers"; # hurd kernels "gnumach-image"; # (out-of-tree) modules ".*-modules"; ".*-kernel"; "linux-backports-modules-.*"; # tools "linux-tools"; }; Never-MarkAuto-Sections { "metapackages"; "contrib/metapackages"; "non-free/metapackages"; "restricted/metapackages"; "universe/metapackages"; "multiverse/metapackages"; }; Move-Autobit-Sections { "oldlibs"; "contrib/oldlibs"; "non-free/oldlibs"; "restricted/oldlibs"; "universe/oldlibs"; "multiverse/oldlibs"; }; };
01autoremove-kernels // DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal APT::NeverAutoRemove { "^linux-image-4\.19\.42-v7\+$"; … "^linux-tools-4\.19\.66-v7l\+$"; };
20listchanges DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt || test $? -lt 10"; }; DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2"; DPkg::Tools::Options::/usr/bin/apt-listchanges::InfoFD "20";
20packagekit DPkg::Post-Invoke { "†/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket $ }; APT::Update::Post-Invoke-Success { "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket $ }; 50apt-file.conf 50raspi 70debconf listchanges.conf preferences.d/ sources.list sources.list.d/ trusted.gpg trusted.gpg.d/