よく使うパッケージ管理ツールについて、機能毎のコマンドを一覧化します。
| 機能 | yum | apt | pip | npm | homebrew |
|---|---|---|---|---|---|
| リポジトリから検索 | yum search word | apt search word | pip search word | npm search word | brew search word |
| リポジトリからインストール | yum install pkg | apt install pkg | pip install pkg | npm install pkg | brew install pkg |
| リポジトリからアップデート有無チェック | yum check-update | pip list --outdated | npm outdated | brew outdated | |
| リポジトリから最新にアップデート | yum update [pkg] | apt upgrade | pip install -U pkg | ||
| インストール済みのパッケージの情報 | yum info pkg | apt show pkg | pip show pkg | ||
| インストール済みのパッケージ一覧 | yum list installed | pip list | npm ls | brew list --versions | |
| アンインストール | yum remove pkg | apt remove pkg | pip uninstall pkg | npm uninstall pkg | brew uninstall pkg |
| リポジトリ一覧 | yum repolist all | ||||
| リポジトリ追加 | yum install repo | ||||
| 設定ファイル | /etc/yum.conf | ||||
| パッケージ管理ツールのバージョン確認 | --- | pip -V | npm -v | brew -v | |
| パッケージ管理ツールのアップデート | --- | --- | pip install --upgrade pip | npm i -g npm | brew update |