Scroll to navigation

APT-MARK(8) APT APT-MARK(8)

名前

apt-mark - パッケージの各種設定の表示、設定、設定解除

概要

apt-mark {-f=filename | {auto | manual} pkg... | {showauto | showmanual} [pkg...] } | {-v | --version} | {-h | --help}

apt-mark {hold | unhold | install | remove | purge} pkg... | {showhold | showinstall | showremove | showpurge} [pkg...]

説明

統合フロントエンドとして使用することができます。例えば、パッケージを自動/手動インストール済みとマークしたり、dpkg の選択を保留、インストール、削除や完全削除に変更できます。例えば apt-get dselect-upgradeaptitude によりリスペクトされています。

自動および手動インストール済みパッケージ

パッケージをインストールすると要求し、その結果、別のパッケージが依存関係を満たすためにインストールされた場合、依存関係に自動インストール済みとマークされます。いったん自動的にインストールされたパッケージは、手動でインストールしたパッケージに依存されなくなると、そのパッケージは、例えば apt-getaptitude により削除が提案されます。

auto

auto は、パッケージを自動インストール済みとマークします。このパッケージに依存する手動でインストールされたパッケージがなくなると、このパッケージを削除します。

manual

manual は、パッケージを手動インストール済みとマークします。このパッケージに依存するほかのパッケージがなくなっても、このパッケージを自動的に削除するのを防ぎます。

showauto

showauto は、自動的にインストールされたパッケージを、パッケージごとに改行して表示します。パッケージを与えなければ、自動的にインストールされたパッケージをすべて一覧表示します。パッケージを与えた場合は、そのパッケージが自動的にインストールされている場合にのみ、表示します。

showmanual

showmanual は showauto と同様に使用できますが、手動でインストールされたパッケージの一覧を表示します。

オプション

-f=filename, --file=filename
デフォルトの場所 (設定項目: Dir::State で定義したディレクトリの extended_status) ではなく、パラメータ filename からパッケージの状態を読み書きします。

パッケージの変更を防ぐ

hold
hold は、パッケージを保留としてマークします。パッケージを自動的なインストール、アップグレード、削除から防ぎます。

unhold

unhold は、以前保留したパッケージを、また操作できるようキャンセルするのに使用します。

showhold

showhold は、他の show コマンドと同様に、保留されているパッケージを出力します。

パッケージのインストール、削除、完全削除をスケジュールする

apt-get dselect-upgrade のようないくつかのフロントエンドは、パッケージのインストール状態の事前のスケジュール変更を適用するために使用することができます。このような変更は、installremove (deinstall としても知られています) および purge オプションでスケジュールすることができます。特定のパッケージの選択は、それぞれ showinstallshowremove および showpurge で表示することができます。dpkg 選択とも呼ぶこれらの詳細については、dpkg で見つけることができます。

オプション

-h, --help
Show a short usage summary.

-v, --version

Show the program version.

-c, --config-file

Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. If configuration settings need to be set before the default configuration files are parsed specify a file with the APT_CONFIG environment variable. See apt.conf(5) for syntax information.

-o, --option

Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --option can be used multiple times to set different options.

ファイル

/var/lib/apt/extended_states
Status list of auto-installed packages. Configuration Item: Dir::State::extended_states.

関連項目

apt-get(8),aptitude(8),apt.conf(5)

診断メッセージ

apt-mark は正常終了時に 0 を返します。エラー時には 0 以外を返します。

BUGS

APT bug page[1]. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.

TRANSLATION

The english translation was done by John Doe <john@doe.org> in 2009, 2010 and Daniela Acme <daniela@acme.us> in 2010 together with the Debian Dummy l10n Team <debian-l10n-dummy@lists.debian.org>.

Note that this translated document may contain untranslated parts. This is done on purpose, to avoid losing content when the translation is lagging behind the original content.

著者

O'Connor Mike[FAMILY Given]

[FAMILY Given]

注記

1.
APT bug page
25 9 月 2015 APT 1.4.9