0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Linux パッケージ管理コマンド対応表

Posted at

Linuxでのパッケージ管理

Linuxにはいろいろとパッケージを管理するコマンドがありますが、行っている操作は共通している部分が多いと思っています。
"apt install" や"yum update"、"pacman -R"といったものは、方言のようなものかもしれません。
備忘録、勉強としてまとめてみました。間違いがありましたら、ご指摘お願いします。

パッケージ管理コマンド インストール アンインストール アンインストール(設定ファイルも含めて削除)
apt install remove purge
yum install remove ---
pacman -S -R -Rn
zypper in/install rm/remove ---
dnf install remove ---
パッケージ管理 更新(リポジトリ) 更新(パッケージ) 検索
apt update upgrade search
yum --- update search
pacman -Sy -Syu -Ss
zypper ref/refresh up/update se/search
dnf --- upgrade search
---のところは、対応するコマンドなし。
yum,dnfコマンドには、リポジトリのパッケージ情報を更新するコマンドがありません。(aptだとapt updateに対応するコマンド)
yum updateやdnf updateを実行した場合、yum upgrade,dnf upgradeコマンドが代わりに実行されます。(つまり、パッケージが更新されます。)
pacmanでの-Syオプションをつけての実行は、推奨されていません。
zypperコマンドは、installをinなど略して記述することが可能です。
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?