aptitude — パッケージマネージャの高レベルインタフェース
aptitude [options...] { autoclean | clean | forget-new | keep-all | update }
aptitude [options...] { full-upgrade | safe-upgrade } [packages...]
aptitude [options...] { build-dep | build-depends | changelog | download | forbid-version | hold | install | markauto | purge | reinstall | remove | show | unhold | unmarkauto | versions } packages...
aptitude extract-cache-subset output-directory packages...
aptitude [オプション...] search パターン...
aptitude [options...] { add-user-tag | remove-user-tag } tag packages...
aptitude [options...] { why | why-not } [patterns...] package
aptitude [-S
fname] [ --autoclean-on-startup | --clean-on-startup | -i | -u ]
aptitude help
aptitude は Debian GNU/Linux のパッケージシステムに対するテキストベースのインタフェースです。
ユーザはパッケージの一覧を表示したり、パッケージのインストール・更新・削除などといったパッケージ管理作業を行ったりできます。アクションはビジュアルインタフェースとコマンドラインから行えます。
ハイフン (「-」)
から始まらない最初の引数は、プログラムが行うアクションだと見なされます。アクションがコマンドラインで与えられない場合、aptitude
はビジュアルモードで起動します。
以下のアクションが利用可能です。
install
Install one or more packages. The packages should be listed after the
「install」 command; if a package name contains a tilde character
(「~」) or a question mark
(「?」), it will be treated as a search
pattern and every package matching the pattern will be installed (see the
section 「Search
Patterns」 in the aptitude reference manual).
パッケージの特定バージョンを選択するには、「aptitude install
apt=0.3.1」というように、パッケージ名に「=」を付記してください。同様に、特定のアーカイブからパッケージを選択するには、「バージョンaptitude
install
apt/experimental」というように、パッケージ名に「/」を付記してください。
アーカイブ
必ずしも、コマンドラインに連ねられたパッケージすべてがインストール対象でなければいけないわけではありません。パッケージ名に「上書き指定子」を付記すると、そのパッケージに対して
aptitude に別のことをさせることが可能です。例えば、aptitude remove wesnoth+
とすると、wesnoth を削除ではなくインストールできます。以下の上書き指定子が利用可能です。
パッケージ+
パッケージ をインストールします。
パッケージ+M
パッケージ をインストールし、その後すぐに、自動的にインストールされたという印をそれに添付します
(パッケージ
に依存するものがなくなった場合、そのパッケージはすぐに削除されてしまうことに注意してください)。
パッケージ-
パッケージ を削除します。
パッケージ_
パッケージ
を完全削除します。すなわち、パッケージ自体とそれに関連する設定ファイルやデータファイルを削除します。
パッケージ=
パッケージ
を固定します。すなわち、今後どのようなインストール・更新・削除を行っても、このパッケージは自動的には更新されません。
パッケージ:
パッケージ
を現在のバージョンに一時的に固定します。つまり、インストール・削除・更新をすべて取り消します。「hold」 (前述)
とは異なり、このコマンドを用いても将来パッケージが自動的に更新されなくなることはありません。
パッケージ&M
自動的にインストールされたという印を
パッケージ に添付します。
パッケージ&m
手動でインストールされたという印を
パッケージ に添付します。
特別な場合として、引数を与えずに「install」を実行すると、保存されているアクションや実行されていないアクションが実行されます。
![]() | 注記 |
|---|---|
最終確認用のプロンプトで一度 |
remove, purge,
hold, unhold, keep,
reinstall
These commands are the same as 「install」,
but apply the named action to all packages given on the command line for
which it is not overridden.
The difference between hold and keep
is that hold will cause a package to be ignored by future
safe-upgrade or
full-upgrade
commands, while keep merely cancels any scheduled actions
on the package. unhold will allow a package to be
upgraded by future safe-upgrade or full-upgrade
commands, without otherwise altering its state.
例えば、「aptitude remove
'~ndeity'」とすると、「deity」を名前に含むパッケージがすべて削除されます。
markauto, unmarkauto
それぞれ、自動的にインストールされた、および手動でインストールされたという印をパッケージに添付します。パッケージの指定は「install」コマンドとまったく同じ方法で行います。例えば「aptitude
markauto
'~slibs'」を実行すると、「libs」セクションのパッケージすべてに、自動的にインストールされたという印が添付されます。
自動的にインストールしたパッケージについてのさらに詳しい情報は、aptitude リファレンスマニュアルの「自動的にインストールしたパッケージの管理」セクションを参照してください。
build-depends, build-dep
Satisfy the build-dependencies of a package. Each package name may be a
source package, in which case the build dependencies of that source package
are installed; otherwise, binary packages are found in the same way as for
the 「install」 command, and the
build-dependencies of the source packages that build those binary packages
are satisfied.
If the command-line parameter --arch-only is present,
only architecture-dependent build dependencies (i.e., not
Build-Depends-Indep or
Build-Conflicts-Indep) will be obeyed.
forbid-version
あるパッケージを特定のバージョンに更新するのを禁止します。これを用いると、aptitude
を、そのバージョンへの更新は自動的に行わず、それ以降のバージョンへの更新は自動的に行うよう、aptitude に指示できます。デフォルトでは
aptitude は、パッケージが通常更新されるバージョンを選択します。「aptitude forbid-version
vim=1.2.3.broken-4」というように、パッケージ名に
= を付記すると、この選択を上書きできます。
バージョン
このコマンドは、手動でバージョンの固定を設定したり解除したりせずに、破損したパッケージバージョンを避けるのに便利です。禁止したものの、そのバージョンを本当に入れたくなった場合は、「install」コマンドでその禁止を解除できます。
update
apt 入手先から入手可能なパッケージの一覧を更新します (これは、「apt-get
update」と等価です)。
safe-upgrade
Upgrades installed packages to their most recent version. Installed
packages will not be removed unless they are unused (see the section
「Managing Automatically Installed
Packages」 in the aptitude reference manual). Packages which
are not currently installed may be installed to resolve dependencies unless
the --no-new-installs
command-line option is supplied.
If no packages are listed on the command line,
aptitude will attempt to upgrade every package that can be upgraded.
Otherwise, aptitude will attempt to upgrade only the packages which it is
instructed to upgrade. The packages can be
extended with suffixes in the same manner as arguments to aptitude
install, so you can also give additional instructions to
aptitude here; for instance, aptitude safe-upgrade bash
dash- will attempt to upgrade the bash
package and remove the dash package.
It is sometimes necessary to remove one package in order to upgrade another;
this command is not able to upgrade packages in such situations. Use the
full-upgrade
command to upgrade as many packages as possible.
full-upgrade
Upgrades installed packages to their most recent version, removing or
installing packages as necessary. This command is less conservative than
safe-upgrade
and thus more likely to perform unwanted actions. However, it is capable of
upgrading packages that safe-upgrade cannot
upgrade.
If no packages are listed on the command line,
aptitude will attempt to upgrade every package that can be upgraded.
Otherwise, aptitude will attempt to upgrade only the packages which it is
instructed to upgrade. The packages can be
extended with suffixes in the same manner as arguments to aptitude
install, so you can also give additional instructions to
aptitude here; for instance, aptitude full-upgrade bash
dash- will attempt to upgrade the bash
package and remove the dash package.
![]() | 注記 |
|---|---|
This command was originally named |
keep-all設定されていたアクションをすべてのパッケージについて取り消します。つまり、インストール・削除・更新といった面倒な状態をもったあらゆるパッケージから、そういった状態を取り除きます。
forget-newどのパッケージが「新規」かについての内部情報を消去します (ビジュアルモードで「f」を押すのと等価です)。
search
Searches for packages matching one of the patterns supplied on the command
line. All packages which match any of the given patterns will be displayed;
for instance, 「aptitude search '~N' edit」
will list all 「new」 packages and all packages whose name
contains 「edit」. For more information on search patterns, see
the section 「Search
Patterns」 in the aptitude reference manual.
![]() | 注記 |
|---|---|
In the example above, 「 |
-F
オプションを与えない場合、aptitude search の出力はこのようになります。
i apt - Advanced front-end for dpkg pi apt-build - frontend to apt to build, optimize and in cp apt-file - APT package searching utility -- command- ihA raptor-utils - Raptor RDF Parser utilities
検索結果はそれぞれ異なる行に一覧表示されます。各行の第 1
文字はパッケージの現在の状態を示します。最もありふれた状態は、システムにパッケージが存在した形跡がないという意味の
p、パッケージが削除されたがシステムに設定ファイルが残っているという意味の
c、パッケージがインストールされているという意味の
i、パッケージが仮想パッケージであるという意味の v です。第 2
文字は、パッケージに対して行うよう保存されたアクションを示します
(アクションが存在する場合で、なければ空欄が表示されます)。最もありふれた状態は、パッケージがインストール予定であるという意味の
i、パッケージが削除予定であるという意味の
d、パッケージおよびその設定ファイルが削除予定であるという意味の p
です。第 3 文字が A である場合、そのパッケージは自動的にインストールされたものです。
For a complete list of the possible state and action flags, see the section
「Accessing Package
Information」 in the aptitude reference guide. To customize
the output of search, see the command-line options -F and --sort.
show
Displays detailed information about one or more packages, listed following
the search command. If a package name contains a tilde character
(「~」) or a question mark
(「?」), it will be treated as a search
pattern and all matching packages will be displayed (see the section
「Search Patterns」 in
the aptitude reference manual).
饒舌レベルが 1 以上の場合 (つまり、コマンドラインに -v が 1
つ以上与えられている場合)、そのパッケージのすべてのバージョンについて情報が表示されます。それ以外の場合は「バージョン候補」(「aptitude
install」がダウンロードするバージョン) に関する情報が表示されます。
You can display information about a different version of the package by
appending = to the
package name; you can display the version from a particular archive or
release by appending version/
or archive/ to the package
name: for instance, release/unstable or
/sid. If either of these is present, then only the
version you request will be displayed, regardless of the verbosity level.
饒舌レベルが 1 以上の場合、パッケージのアーキテクチャ・圧縮サイズ・ファイル名・md5sum の各フィールドが表示されます。饒舌レベルが 2 以上の場合、各アーカイブについて、そのアーカイブがもつ 1 つ以上の選択バージョンが一度ずつ表示されます。
versionsDisplays the versions of the packages listed on the command-line.
$ aptitude versions wesnoth p 1:1.4.5-1 100 p 1:1.6.5-1 unstable 500 p 1:1.7.14-1 experimental 1
Each version is listed on a separate line. The leftmost three characters
indicate the current state, planned state (if any), and whether the package
was automatically installed; for more information on their meanings, see
the documentation of aptitude
search. To the right of the version number you can find
the releases from which the version is available, and the pin priority of
the version.
If a package name contains a tilde character
(「~」) or a question mark
(「?」), it will be treated as a search
pattern and all matching versions will be displayed
(see the section 「Search
Patterns」 in the aptitude reference manual). This means
that, for instance, aptitude versions '~i' will display
all the versions that are currently installed on the system and nothing
else, not even other versions of the same packages.
$ aptitude versions '~nexim4-daemon-light' Package exim4-daemon-light: i 4.71-3 100 p 4.71-4 unstable 500 Package exim4-daemon-light-dbg: p 4.71-4 unstable 500
If the input is a search pattern, or if more than one package's versions are
to be displayed, aptitude will automatically group the output by package,
as shown above. You can disable this via --group-by=none, in which case
aptitude will display a single list of all the versions that were found
and automatically include the package name in each output line:
$ aptitude versions --group-by=none '~nexim4-daemon-light' i exim4-daemon-light 4.71-3 100 p exim4-daemon-light 4.71-4 unstable 500 p exim4-daemon-light-dbg 4.71-4 unstable 500
To disable the package name, pass --show-package-names=never:
$ aptitude versions --show-package-names=never --group-by=none '~nexim4-daemon-light' i 4.71-3 100 p 4.71-4 unstable 500 p 4.71-4 unstable 500
In addition to the above options, the information printed for each version
can be controlled by the command-line option -F. The order in
which versions are displayed can be controlled by the command-line option
--sort. To
prevent aptitude from formatting the output into columns, use --disable-columns.
add-user-tag, remove-user-tag
Adds a user tag to or removes a user tag from the selected group of
packages. If a package name contains a tilde
(「~」) or question mark
(「?」), it is treated as a search pattern and
the tag is added to or removed from all the packages that match the pattern
(see the section 「Search
Patterns」 in the aptitude reference manual).
User tags are arbitrary strings associated with a package. They can be used
with the ?user-tag(
search term, which will select all the packages that have a user tag
matching tag)tag.
why, why-notExplains the reason that a particular package should or cannot be installed on the system.
This command searches for packages that require or conflict with the given package. It displays a sequence of dependencies leading to the target package, along with a note indicating the installed state of each package in the dependency chain:
$ aptitude why kdepim i nautilus-data Recommends nautilus i A nautilus Recommends desktop-base (>= 0.2) i A desktop-base Suggests gnome | kde | xfce4 | wmaker p kde Depends kdepim (>= 4:3.4.3)
The command why finds a dependency chain that installs
the package named on the command line, as above. Note that the dependency
that aptitude produced in this case is only a suggestion. This is because
no package currently installed on this computer depends on or recommends the
kdepim package; if a stronger dependency were
available, aptitude would have displayed it.
In contrast, why-not finds a dependency chain leading to
a conflict with the target package:
$ aptitude why-not textopo i ocaml-core Depends ocamlweb i A ocamlweb Depends tetex-extra | texlive-latex-extra i A texlive-latex-extra Conflicts textopo
If one or more patterns are present, then
aptitude will begin its search at these patterns; that is, the first package
in the chain it prints will be a package matching the pattern in question.
The patterns are considered to be package names unless they contain a tilde
character (「~」) or a question mark
(「?」), in which case they are treated as
search patterns (see the section 「Search Patterns」 in the aptitude
reference manual).
If no patterns are present, then aptitude will search for dependency chains beginning at manually installed packages. This effectively shows the packages that have caused or would cause a given package to be installed.
![]() | 注記 |
|---|---|
|
By default aptitude outputs only the 「most installed, strongest, tightest, shortest」 dependency chain. That is, it looks for a chain that only contains packages which are installed or will be installed; it looks for the strongest possible dependencies under that restriction; it looks for chains that avoid ORed dependencies and Provides; and it looks for the shortest dependency chain meeting those criteria. These rules are progressively weakened until a match is found.
If the verbosity level is 1 or more, then all the explanations aptitude can find will be displayed, in inverse order of relevance. If the verbosity level is 2 or more, a truly excessive amount of debugging information will be printed to standard output.
This command returns 0 if successful, 1 if no explanation could be constructed, and -1 if an error occured.
clean
以前ダウンロードした .deb ファイルをパッケージキャッシュディレクトリ (通常
/var/cache/apt/archives) から削除します。
autocleanもうダウンロードできない、キャッシュされたパッケージを削除します。これによって、完全に削除しないかぎりキャッシュが時間とともに肥大化してしまい制御できなくなる、という事態を防げます。
changelog指定されたソースパッケージまたはバイナリパッケージの各々について、Debian パッケージ更新履歴をダウンロードして表示します。
By default, the changelog for the version which would be installed with
「aptitude install」 is downloaded. You can
select a particular version of a package by appending
= to the package name;
you can select the version from a particular archive or release by appending
version/ or
archive/ to the package name
(for instance, release/unstable or /sid).
download
Downloads the .deb file for the given package to the
current directory. If a package name contains a tilde character
(「~」) or a question mark
(「?」), it will be treated as a search
pattern and all the matching packages will be downloaded (see the section
「Search Patterns」 in
the aptitude reference manual).
By default, the version which would be installed with
「aptitude install」 is downloaded. You can
select a particular version of a package by appending
= to the package name;
you can select the version from a particular archive or release by appending
version/ or
archive/ to the package name
(for instance: release/unstable or /sid).
extract-cache-subset
Copy the apt configuration directory (/etc/apt) and a
subset of the package database to the specified directory. If no packages
are listed, the entire package database is copied; otherwise only the
entries corresponding to the named packages are copied. Each package name
may be a search pattern, and all the packages matching that pattern will be
selected (see the section 「Search
Patterns」 in the aptitude reference manual). Any existing
package database files in the output directory will be overwritten.
Dependencies in binary package stanzas will be rewritten to remove references to packages not in the selected set.
help利用可能なコマンドとオプションを簡潔にまとめて表示します。
以上のアクションの振る舞いを変更するのに、以下のオプションが利用可能です。どのオプションも全てのコマンドに使えますが、オプションによっては特定のコマンドに適用できず無視されます。
--add-user-tag tag
For full-upgrade, safe-upgrade,
forbid-version, hold,
install, keep-all,
markauto, unmarkauto,
purge, reinstall,
remove, unhold, and
unmarkauto: add the user tag
tag to all packages that are installed, removed,
or upgraded by this command as if with the add-user-tag
command.
--add-user-tag-to
tag,pattern
For full-upgrade, safe-upgrade
forbid-version, hold,
install, keep-all,
markauto, unmarkauto,
purge, reinstall,
remove, unhold, and
unmarkauto: add the user tag
tag to all packages that match
pattern as if with the add-user-tag
command. The pattern is a search pattern as described in the section
「Search Patterns」 in
the aptitude reference manual.
For instance, aptitude safe-upgrade --add-user-tag-to
"new-installs,?action(install)" will add the tag
new-installs to all the packages installed by the safe-upgrade command.
--allow-new-upgrades
When the safe resolver is being used (i.e., --safe-resolver was
passed or Aptitude::Always-Use-Safe-Resolver
is set to true), allow the dependency resolver to install
upgrades for packages regardless of the value of Aptitude::Safe-Resolver::No-New-Upgrades.
--allow-new-installs
Allow the safe-upgrade command
to install new packages; when the safe resolver is being used (i.e., --safe-resolver was
passed or Aptitude::Always-Use-Safe-Resolver
is set to true), allow the dependency resolver to install
new packages. This option takes effect regardless of the value of Aptitude::Safe-Resolver::No-New-Installs.
--allow-untrustedInstall packages from untrusted sources without prompting. You should only use this if you know what you are doing, as it could easily compromise your system's security.
--disable-columns
This option causes aptitude search and aptitude
version to output their results without any special formatting.
In particular: normally aptitude will add whitespace or truncate search
results in an attempt to fit its results into vertical
「columns」. With this flag, each line will be formed by
replacing any format escapes in the format string with the correponding
text; column widths will be ignored.
For instance, the first few lines of output from 「aptitude
search -F '%p %V' --disable-columns libedataserver」 might
be:
disksearch 1.2.1-3 hp-search-mac 0.1.3 libbsearch-ruby 1.5-5 libbsearch-ruby1.8 1.5-5 libclass-dbi-abstractsearch-perl 0.07-2 libdbix-fulltextsearch-perl 0.73-10
As in the above example, --disable-columns is often
useful in combination with a custom display format set using the
command-line option -F.
This corresponds to the configuration option Aptitude::CmdLine::Disable-Columns.
-D, --show-deps
For commands that will install or remove packages
(install, full-upgrade, etc),
show brief explanations of automatic installations and removals.
これは設定オプション Aptitude::CmdLine::Show-Deps
に相当します。
-d, --download-only
必要に応じてパッケージをパッケージキャッシュにダウンロードしますが、インストールや削除はしません。デフォルトでは、パッケージキャッシュは
/var/cache/apt/archives に保存されます。
これは設定オプション Aptitude::CmdLine::Download-Only
に相当します。
-F フォーマット,
--display-format フォーマット
Specify the format which should be used to display output from the
search and version commands. For
instance, passing 「%p %V %v」 for
format will display a package's name, followed by
its currently installed version and its available version (see the section
「Customizing how packages are
displayed」 in the aptitude reference manual for more
information).
The command-line option --disable-columns
is often useful in combination with -F.
For search, this corresponds to the configuration option
Aptitude::CmdLine::Package-Display-Format;
for versions, this corresponds to the configuration
option Aptitude::CmdLine::Version-Display-Format.
-fコマンドラインで要求されたアクションを無視することになってもなお、破損パッケージの依存関係を修正しようとします。
これは設定項目 Aptitude::CmdLine::Fix-Broken
に相当します。
--full-resolver
When package dependency problems are encountered, use the default
「full」 resolver to solve them. Unlike the 「safe」
resolver activated by --safe-resolver, the
full resolver will happily remove packages to fulfill dependencies. It can
resolve more situations than the safe algorithm, but its solutions are more
likely to be undesirable.
This option can be used to force the use of the full resolver even when
Aptitude::Always-Use-Safe-Resolver
is true. The safe-upgrade command
never uses the full resolver and does not accept the
--full-resolver option.
--group-by grouping-mode
Control how the versions command groups
its output. The following values are recognized:
archive to group packages by the archive they occur in
(「stable」,
「unstable」, etc). If a package occurs in
several archives, it will be displayed in each of them.
auto to group versions by their package unless there is
exactly one argument and it is not a search pattern.
none to display all the versions in a single list without
any grouping.
package to group versions by their package.
source-package to group versions by their source package.
source-version to group versions by their source package
and source version.
This corresponds to the configuration option Aptitude::CmdLine::Versions-Group-By.
-h, --help
簡潔なヘルプメッセージを表示します。help アクションと同一です。
--log-file=file
If file is a nonempty string, log messages will
be written to it, except that if file is
「-」, the messages will be written to
standard output instead. If this option appears multiple times, the last
occurrence is the one that will take effect.
This does not affect the log of installations that aptitude has performed
(/var/log/aptitude); the log messages written using
this configuration include internal program events, errors, and debugging
messages. See the command-line option --log-level to get
more control over what gets logged.
This corresponds to the configuration option Aptitude::Logging::File.
--log-level=level,
--log-level=category:level
--log-level= causes
aptitude to only log messages whose level is
levellevel or higher. For instance, setting the log
level to error will cause only messages at the log levels
error and fatal to be displayed; all
others will be hidden. Valid log levels (in descending order) are
off, fatal, error,
warn, info, debug,
and trace. The default log level is
warn.
--log-level=
causes messages in category:levelcategory to only be logged if
their level is level or higher.
--log-level may appear multiple times on the command
line; the most specific setting is the one that takes effect, so if you pass
--log-level=aptitude.resolver:fatal and
--log-level=aptitude.resolver.hints.match:trace, then
messages in aptitude.resolver.hints.parse will only be
printed if their level is fatal, but all messages in
aptitude.resolver.hints.match will be printed. If you
set the level of the same category two or more times, the last setting is
the one that will take effect.
This does not affect the log of installations that aptitude has performed
(/var/log/aptitude); the log messages written using
this configuration include internal program events, errors, and debugging
messages. See the command-line option --log-file to
change where log messages go.
This corresponds to the configuration group Aptitude::Logging::Levels.
--log-resolver
Set some standard log levels related to the resolver, to produce logging
output suitable for processing with automated tools. This is equivalent to
the command-line options --log-level=aptitude.resolver.search:trace
--log-level=aptitude.resolver.search.tiers:info.
--no-new-installs
Prevent safe-upgrade from
installing any new packages; when the safe resolver is being used (i.e.,
--safe-resolver was
passed or Aptitude::Always-Use-Safe-Resolver
is set to true), forbid the dependency resolver from
installing new packages. This option takes effect regardless of the value
of Aptitude::Safe-Resolver::No-New-Installs.
This mimics the historical behavior of apt-get upgrade.
This corresponds to the configuration option Aptitude::CmdLine::Safe-Upgrade::No-New-Installs.
--no-new-upgrades
When the safe resolver is being used (i.e., --safe-resolver was
passed or Aptitude::Always-Use-Safe-Resolver
is set to true), allow the dependency resolver to install
new packages regardless of the value of Aptitude::Safe-Resolver::No-New-Installs.
--no-show-resolver-actions
Do not display the actions performed by the 「safe」 resolver,
overriding any configuration option or earlier --show-resolver-actions.
-O 順序,
--sort 順序
Specify the order in which output from the search and versions commands should
be displayed. For instance, passing
「installsize」 for
order will list packages in order according to
their size when installed (see the section 「Customizing how packages are
sorted」 in the aptitude reference manual for more
information).
The default sort order is name,version.
-o
キー=値
設定ファイルオプションを直接設定します。例えば -o Aptitude::Log=/tmp/my-log
を用いると、aptitude のアクションを /tmp/my-log
に記録できます。設定ファイルオプションarchive or r line will be formed by
replacing any format escapes in the format string with the correponding
text; column widths will be ignored.
For instance, the first few lines of output from 「aptitude
search -F '%p %V' --disable-columns libedataserver」 might
be:
disksearch 1.2.1-3 hp-search-mac 0.1.3 libbsearch-ruby 1.5-5 libbsearch-ruby1.8 1.5-5 libclass-dbi-abstractsearch-perl 0.07-2 libdbix-fulltextsearch-perl 0.73-10
As in the above example, --disable-columns is often
useful in combination with a custom display format set using the
command-line option -F.
This corresponds to the configuration option Aptitude::CmdLine::Disable-Columns.
-D, --show-deps
For commands that will install or remove packages
(install, full-upgrade, etc),
show brief explanations of automatic installations and removals.
これは設定オプション Aptitude::CmdLine::Show-Deps
に相当します。
-d, --download-only
必要に応じてパッケージをパッケージキャッシュにダウンロードしますが、インストールや削除はしません。デフォルトでは、パッケージキャッシュは
/var/cache/apt/archives に保存されます。
これは設定オプション Aptitude::CmdLine::Download-Only
に相当します。
-F フォーマット,
--display-format フォーマット
Specify the format which should be used to display output from the
search and version commands. For
instance, passing 「%p %V %v」 for
format will display a package's name, followed by
its currently installed version and its available version (see the section
「Customizing how packages are
displayed」 in the aptitude reference manual for more
information).
The command-line option --disable-columns
is often useful in combination with -F.
For search, this corresponds to the configuration option
Aptitude::CmdLine::Package-Display-Format;
for versions, this corresponds to the configuration
option Aptitude::CmdLine::Version-Display-Format.
-fコマンドラインで要求されたアクションを無視することになってもなお、破損パッケージの依存関係を修正しようとします。
これは設定項目 Aptitude::CmdLine::Fix-Broken
に相当します。
--full-resolver
When package dependency problems are encountered, use the default
「full」 resolver to solve them. Unlike the 「safe」
resolver activated by --safe-resolver, the
full resolver will happily remove packages to fulfill dependencies. It can
resolve more situations than the safe algorithm, but its solutions are more
likely to be undesirable.
This option can be used to force the use of the full resolver even when
Aptitude::Always-Use-Safe-Resolver
is true. The safe-upgrade command
never uses the full resolver and does not accept the
--full-resolver option.
--group-by grouping-mode
Control how the versions command groups
its output. The following values are recognized:
archive to group packages by the archive they occur in
(「stable」,
「unstable」, etc). If a package occurs in
several archives, it will be displayed in each of them.
auto to group versions by their package unless there is
exactly one argument and it is not a search pattern.
none to display all the versions in a single list without
any grouping.
package to group versions by their package.
source-package to group versions by their source package.
source-version to group versions by their source package
and source version.
This corresponds to the configuration option Aptitude::CmdLine::Versions-Group-By.
-h, --help
簡潔なヘルプメッセージを表示します。help アクションと同一です。
--log-file=file
If file is a nonempty string, log messages will
be written to it, except that if file is
「-」, the messages will be written to
standard output instead. If this option appears multiple times, the last
occurrence is the one that will take effect.
This does not affect the log of installations that aptitude has performed
(/var/log/aptitude); the log messages written using
this configuration include internal program events, errors, and debugging
messages. See the command-line option --log-level to get
more control over what gets logged.
This corresponds to the configuration option Aptitude::Logging::File.
--log-level=level,
--log-level=category:level
--log-level= causes
aptitude to only log messages whose level is
levellevel or higher. For instance, setting the log
level to error will cause only messages at the log levels
error and fatal to be displayed; all
others will be hidden. Valid log levels (in descending order) are
off, fatal, error,
warn, info, debug,
and trace. The default log level is
warn.
--log-level=
causes messages in category:levelcategory to only be logged if
their level is level or higher.
--log-level may appear multiple times on the command
line; the most specific setting is the one that takes effect, so if you pass
--log-level=aptitude.resolver:fatal and
--log-level=aptitude.resolver.hints.match:trace, then
messages in aptitude.resolver.hints.parse will only be
printed if their level is fatal, but all messages in
aptitude.resolver.hints.match will be printed. If you
set the level of the same category two or more times, the last setting is
the one that will take effect.
This does not affect the log of installations that aptitude has performed
(/var/log/aptitude); the log messages written using
this configuration include internal program events, errors, and debugging
messages. See the command-line option --log-file to
change where log messages go.
This corresponds to the configuration group Aptitude::Logging::Levels.
--log-resolver
Set some standard log levels related to the resolver, to produce logging
output suitable for processing with automated tools. This is equivalent to
the command-line options --log-level=aptitude.resolver.search:trace
--log-level=aptitude.resolver.search.tiers:info.
--no-new-installs
Prevent safe-upgrade from
installing any new packages; when the safe resolver is being used (i.e.,
--safe-resolver was
passed or Aptitude::Always-Use-Safe-Resolver
is set to true), forbid the dependency resolver from
installing new packages. This option takes effect regardless of the value
of Aptitude::Safe-Resolver::No-New-Installs.
This mimics the historical behavior of apt-get upgrade.
This corresponds to the configuration option Aptitude::CmdLine::Safe-Upgrade::No-New-Installs.
--no-new-upgrades
When the safe resolver is being used (i.e., --safe-resolver was
passed or Aptitude::Always-Use-Safe-Resolver
is set to true), allow the dependency resolver to install
new packages regardless of the value of Aptitude::Safe-Resolver::No-New-Installs.
--no-show-resolver-actions
Do not display the actions performed by the 「safe」 resolver,
overriding any configuration option or earlier --show-resolver-actions.
-O 順序,
--sort 順序
Specify the order in which output from the search and versions commands should
be displayed. For instance, passing
「installsize」 for
order will list packages in order according to
their size when installed (see the section 「Customizing how packages are
sorted」 in the aptitude reference manual for more
information).
The default sort order is name,version.
-o
キー=値
設定ファイルオプションを直接設定します。例えば -o Aptitude::Log=/tmp/my-log
を用いると、aptitude のアクションを /tmp/my-log
に記録できます。設定ファイルオプションarchive or r line will be formed by
replacing any format escapes in the format string with the correponding
text; column widths will be ignored.
For instance, the first few lines of output from 「aptitude
search -F '%p %V' --disable-columns libedataserver」 might
be:
disksearch 1.2.1-3 hp-search-mac 0.1.3 libbsearch-ruby 1.5-5 libbsearch-ruby1.8 1.5-5 libclass-dbi-abstractsearch-perl 0.07-2 libdbix-fulltextsearch-perl 0.73-10
As in the above example, --disable-columns is often
useful in combination with a custom display format set using the
command-line option -F.
This corresponds to the configuration option Aptitude::CmdLine::Disable-Columns.
-D, --show-deps
For commands that will install or remove packages
(install, full-upgrade, etc),
show brief explanations of automatic installations and removals.
これは設定オプション Aptitude::CmdLine::Show-Deps
に相当します。
-d, --download-only
必要に応じてパッケージをパッケージキャッシュにダウンロードしますが、インストールや削除はしません。デフォルトでは、パッケージキャッシュは
/var/cache/apt/archives に保存されます。
これは設定オプション Aptitude::CmdLine::Download-Only
に相当します。
-F フォーマット,
--display-format フォーマット
Specify the format which should be used to display output from the
search and version commands. For
instance, passing 「%p %V %v」 for
format will display a package's name, followed by
its currently installed version and its available version (see the section
「Customizing how packages are
displayed」 in the aptitude reference manual for more
information).
The command-line option --disable-columns
is often useful in combination with -F.
For search, this corresponds to the configuration option
Aptitude::CmdLine::Package-Display-Format;
for versions, this corresponds to the configuration
option Aptitude::CmdLine::Version-Display-Format.
-fコマンドラインで要求されたアクションを無視することになってもなお、破損パッケージの依存関係を修正しようとします。
これは設定項目 Aptitude::CmdLine::Fix-Broken
に相当します。
--full-resolver
When package dependency problems are encountered, use the default
「full」 resolver to solve them. Unlike the 「safe」
resolver activated by --safe-resolver, the
full resolver will happily remove packages to fulfill dependencies. It can
resolve more situations than the safe algorithm, but its solutions are more
likely to be undesirable.
This option can be used to force the use of the full resolver even when
Aptitude::Always-Use-Safe-Resolver
is true. The safe-upgrade command
never uses the full resolver and does not accept the
--full-resolver option.
--group-by grouping-mode
Control how the versions command groups
its output. The following values are recognized:
archive to group packages by the archive they occur in
(「stable」,
「unstable」, etc). If a package occurs in
several archives, it will be displayed in each of them.
auto to group versions by their package unless there is
exactly one argument and it is not a search pattern.
none to display all the versions in a single list without
any grouping.
package to group versions by their package.
source-package to group versions by their source package.
source-version to group versions by their source package
and source version.
This corresponds to the configuration option Aptitude::CmdLine::Versions-Group-By.
-h, --help
簡潔なヘルプメッセージを表示します。help アクションと同一です。
--log-file=file
If file is a nonempty string, log messages will
be written to it, except that if file is
「-」, the messages will be written to
standard output instead. If this option appears multiple times, the last
occurrence is the one that will take effect.
This does not affect the log of installations that aptitude has performed
(/var/log/aptitude); the log messages written using
this configuration include internal program events, errors, and debugging
messages. See the command-line option --log-level to get
more control over what gets logged.
This corresponds to the configuration option Aptitude::Logging::File.
--log-level=level,
--log-level=category:level
--log-level= causes
aptitude to only log messages whose level is
levellevel or higher. For instance, setting the log
level to error will cause only messages at the log levels
error and fatal to be displayed; all
others will be hidden. Valid log levels (in descending order) are
off, fatal, error,
warn, info, debug,
and trace. The default log level is
warn.
--log-level=
causes messages in category:levelcategory to only be logged if
their level is level or higher.
--log-level may appear multiple times on the command
line; the most specific setting is the one that takes effect, so if you pass
--log-level=aptitude.resolver:fatal and
--log-level=aptitude.resolver.hints.match:trace, then
messages in aptitude.resolver.hints.parse will only be
printed if their level is fatal, but all messages in
aptitude.resolver.hints.match will be printed. If you
set the level of the same category two or more times, the last setting is
the one that will take effect.
This does not affect the log of installations that aptitude has performed
(/var/log/aptitude); the log messages written using
this configuration include internal program events, errors, and debugging
messages. See the command-line option --log-file to
change where log messages go.
This corresponds to the configuration group Aptitude::Logging::Levels.
--log-resolver
Set some standard log levels related to the resolver, to produce logging
output suitable for processing with automated tools. This is equivalent to
the command-line options --log-level=aptitude.resolver.search:trace
--log-level=aptitude.resolver.search.tiers:info.
--no-new-installs
Prevent safe-upgrade from
installing any new packages; when the safe resolver is being used (i.e.,
--safe-resolver was
passed or Aptitude::Always-Use-Safe-Resolver
is set to true), forbid the dependency resolver from
installing new packages. This option takes effect regardless of the value
of Aptitude::Safe-Resolver::No-New-Installs.
This mimics the historical behavior of apt-get upgrade.
This corresponds to the configuration option Aptitude::CmdLine::Safe-Upgrade::No-New-Installs.
--no-new-upgrades
When the safe resolver is being used (i.e., --safe-resolver was
passed or Aptitude::Always-Use-Safe-Resolver
is set to true), allow the dependency resolver to install
new packages regardless of the value of Aptitude::Safe-Resolver::No-New-Installs.
--no-show-resolver-actions
Do not display the actions performed by the 「safe」 resolver,
overriding any configuration option or earlier --show-resolver-actions.
-O 順序,
--sort 順序
Specify the order in which output from the search and versions commands should
be displayed. For instance, passing
「installsize」 for
order will list packages in order according to
their size when installed (see the section 「Customizing how packages are
sorted」 in the aptitude reference manual for more
information).
The default sort order is name,version.
-o
キー=