編集の要約なし
 
(同じ利用者による、間の3版が非表示)
16行目: 16行目:
!apt-cache
!apt-cache
|performs a variety of operations on APT's package cache.  apt-cache does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata. The metadata is acquired and updated via the 'update' command of e.g.  apt-get, so that it can be outdated if the last update is too long ago, but in exchange apt-cache works independently of the availability of the configured sources (e.g. offline).
|performs a variety of operations on APT's package cache.  apt-cache does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata. The metadata is acquired and updated via the 'update' command of e.g.  apt-get, so that it can be outdated if the last update is too long ago, but in exchange apt-cache works independently of the availability of the configured sources (e.g. offline).
|-
!apt-listchanges
|is a tool to show what has been changed in a new version of a Debian package, as compared to the version currently installed on the system.
|-
!apt-mark
|can be used as a unified front-end to set various settings for a package, such as marking a package as being automatically/manually installed or changing dpkg selections such as hold, install, deinstall and purge which are respected e.g. by apt-get dselect-upgrade or aptitude.
|-
!apt-sourtpkgs
|will take an index file (source index or package index) and sort the records so that they are ordered by the package name. It will also sort the internal fields of each record according to the internal sorting rules.
|-
|-
!apt-extracttempleates
!apt-extracttempleates
25行目: 34行目:
!apt-cdrom
!apt-cdrom
|is used to add a new CD-ROM to APT's list of available sources.  apt-cdrom takes care of determining the structure of the disc as well as correcting for several possible mis-burns and verifying the index files.
|is used to add a new CD-ROM to APT's list of available sources.  apt-cdrom takes care of determining the structure of the disc as well as correcting for several possible mis-burns and verifying the index files.
|-
!apt-key
|Deprecated APT key management utility. apt-key is used to manage the list of keys used by apt to authenticate packages. Packages which have been authenticated using these keys will be considered trusted. <u>Use of apt-key is deprecated, except for the use of apt-key del in maintainer scripts to remove existing keys from the main keyring</u>.
|}
|}

2023年1月1日 (日) 13:36時点における最新版

APT tools

APT is a vast project, whose original plans included a graphical interface. It is based on a library which contains the core application, and apt-get is the first front end — command-line based — which was developed within the project. apt is a second command-line based front end provided by APT which overcomes some design mistakes of apt-get.

ちなみに、aptitiude は外部プロジェクトとして誕生した派生APT。現在のDebianではaptコマンド推奨となっており、aptコマンドが使えれば問題ない。

コマンド 概要
apt-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.
apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library. Several "front-end" interfaces exist, such as aptitude(8), synaptic(8) and wajig(1).
apt-cache performs a variety of operations on APT's package cache. apt-cache does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata. The metadata is acquired and updated via the 'update' command of e.g. apt-get, so that it can be outdated if the last update is too long ago, but in exchange apt-cache works independently of the availability of the configured sources (e.g. offline).
apt-listchanges is a tool to show what has been changed in a new version of a Debian package, as compared to the version currently installed on the system.
apt-mark can be used as a unified front-end to set various settings for a package, such as marking a package as being automatically/manually installed or changing dpkg selections such as hold, install, deinstall and purge which are respected e.g. by apt-get dselect-upgrade or aptitude.
apt-sourtpkgs will take an index file (source index or package index) and sort the records so that they are ordered by the package name. It will also sort the internal fields of each record according to the internal sorting rules.
apt-extracttempleates will take one or more Debian package files as input and write out (to a temporary directory) all associated config scripts and template files. For each passed in package that contains config scripts and templates, one line of output will be generated in the format: package version template-file config-script
apt-ftparchive is the command line tool that generates the index files that APT uses to access a distribution source. The index files should be generated on the origin site based on the content of that site.
apt-cdrom is used to add a new CD-ROM to APT's list of available sources. apt-cdrom takes care of determining the structure of the disc as well as correcting for several possible mis-burns and verifying the index files.
apt-key Deprecated APT key management utility. apt-key is used to manage the list of keys used by apt to authenticate packages. Packages which have been authenticated using these keys will be considered trusted. Use of apt-key is deprecated, except for the use of apt-key del in maintainer scripts to remove existing keys from the main keyring.