レス
元トピ
次レスタイトル
Re: 問題ID: 44806
フォーラム
最強WEB問題集LinuC/LPIC Lv1 101
投稿ユーザ(投稿日)
(2020/8/5)本文
-----引用(始)-----
apt-get i であるとかyum install
ではインストール対象をパッケージ名で指定しますが
パッケージファイル名ではダメなのでしょうか?
-----引用(終)-----
apt-get はだめってなってますね。
[code]
$ man apt-get
(略)
install
install is followed by one or more packages desired for installation or upgrading. Each
package is a package name, not a fully qualified filename (for instance, in a Debian system,
apt-utils would be the argument provided, not apt-utils_2.0.2ubuntu0.1_amd64.deb).
意訳:
指定されたパッケージをインストール、アップグレードする。パッケージの指定はパッケージ名であり、完全なファイル名ではない。
[/code]
yum の場合は、パッケージファイル名を指定すると「localinstall」コマンドが指定されたのと同じ動作になります。
[code]
$ man yum
(略)
install
Is used to install the latest version of a package or group of packages while ensuring that
all dependencies are satisfied. (See Specifying package names for more information) If no
package matches the given package name(s), they are assumed to be a shell glob and any
matches are then installed.
(略)
If the name is a file, then install works like localinstall.
[/code]
-----引用(始)-----
もしパッケージ名ファイル名を指定したいのであれば
dpkg -ip であるとかrpm -ipといったコマンドを使用しないと
特定のパッケージファイルを指定することはできないのでしょうか?
-----引用(終)-----
問題ID:44796, 44821 を見てもらうと dpkg や rpm では -i オプションと「パッケージファイル名」で指定すると説明があります。 -p オプションが必要とは書いてないですよ。
参考なども含めてよく読んでほしいのですが
・apt / yum といった「パッケージ管理システム」は「パッケージ情報の
データベース」をもとに、パッケージファイル名や依存するパッケージの情報を解決し、インストールやアンインストール、アップグレードを行います
・dpkg / rpm といった「パッケージ管理ツール」は、パッケージファイルの展開、インストール、アンインストールを行います。ツールごとにデータベースを持ちます。
レス一覧
元トピ
次レス
Copyright (c) 2010
Ping-t All rights reserved.