Scroll to navigation

APT-CDROM(8) APT APT-CDROM(8)

名前

apt-cdrom - APT CD-ROM 管理ユーティリティ

概要

apt-cdrom [-rmfan] [-d=cdrom_mount_point] [-o=config_string] [-c=config_file] {add | ident | {-v | --version} | {-h | --help}}

説明

apt-cdrom は利用可能な取得元として、APT のリストに新しい CD-ROM を追加するのに使用します。apt-cdrom は、ディスクの構造を測定します。また、焼き損じを可能な限り補正し、インデックスファイルの確認を行います。

APT システムに手作業で CD を追加するのは難しいため、apt-cdrom が必要になります。その上、複数の CD のディスクを 1 枚づつ、焼き損じを補正できるか評価しなければなりません。

-h オプションや --help オプションを除き、以下に挙げるコマンドが必要です。

add

add は、新しいディスクを取得元リストに追加します。CD-ROM デバイスのアンマウントやディスク挿入のプロンプト表示の後に、ディスクのスキャンとインデックスファイルのコピーを行います。ディスクに正しい .disk ディレクトリが存在しない場合、タイトルを入力するよう促します。

APT は、現在ドライブにあるディスクのトラックから取得した、CD-ROM ID を使用します。またその ID を、/var/lib/apt/cdroms.list 内のデータベースで管理します。

ident

格納されているファイル名と現在のディスクが同一かどうかをレポートする、デバッグツールです。

オプション

All command line options may be set using the configuration file, the descriptions indicate the configuration option to set. For boolean options you can override the config file by using something like -f-,--no-f, -f=no or several other variations.

--no-auto-detect, --cdrom

CD-ROM パスの自動検出を試行しません。通常、--cdrom オプションと組み合わせて使います。設定項目: Acquire::cdrom::AutoDetect

-d, --cdrom

マウントポイント - CD-ROM をマウントする場所を指定します。このマウントポイントは、/etc/fstab に正しく設定されている必要があります。設定項目: Acquire::cdrom::mount

-r, --rename

ディスクの名前変更 - ディスクのラベル変更や、指定したラベルでのラベルの上書きを行います。このオプションにより、apt-cdrom が新しいラベルを入力するよう促します。設定項目: APT::CDROM::Rename

-m, --no-mount

マウントなし - apt-cdrom が、マウントポイントにマウント・アンマウントしないようにします。設定項目: APT::CDROM::NoMount

-f, --fast

高速コピー - パッケージファイルが妥当であると仮定し、チェックを全く行いません。このオプションは、このディスクで以前 apt-cdrom を行っており、エラーを検出しなかった場合のみ使用すべきです。設定項目: APT::CDROM::Fast

-a, --thorough

完全パッケージスキャン - 古い Debian 1.1/1.2 のディスクは、パッケージファイルが違う場所にあるため、このオプションを使う必要があるかもしれません。CD をスキャンするのに非常に時間がかかりますが、全パッケージファイルを抽出することができます。

-n, --just-print, --recon, --no-act

変更なし - sources.list(5) ファイルの変更や、インデックスファイルの書き込みを行いません。とはいえ、すべてのチェックは行います。設定項目: APT::CDROM::NoAct

-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.

関連項目

apt.conf(5), apt-get(8), sources.list(5)

診断メッセージ

apt-cdrom は正常終了時に 0 を返します。エラー時には十進の 100 を返します。

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.

著者

Gunthorpe Jason[FAMILY Given]

[FAMILY Given]

注記

1.
APT bug page
30 11 月 2013 APT 1.4.9