LoginSignup
1
0

パッケージ管理(RedHat系・Debian系・openSUSE)

Posted at

はじめに

LPIC取得に向けて学習中であり、パッケージ管理の設定ファイルやサブコマンドを中心に記事を作成中。

目次

  • 基本設定ファイル
  • リポジトリ設定ファイル
  • インストール
  • アップデート
  • アンインストール

基本設定ファイル

ディレクトリ
RedHat系 rpm /etc/rpm
yum /etc/yum.conf
Debian系 dpkg /etc/dpkg/dpkg.cfg
apt-get /etc/apt/apt.conf
openSUSE zypper /etc/zypp/zypper.conf

リポジトリ設定ファイル

ディレクトリ
RedHat系 rpm -
yum /etc/yum.repos.d
Debian系 dpkg -
apt-get /etc/apt/sources.list
openSUSE zypper /etc/zypp/repos.d/

インストール

サブコマンド
RedHat系 rpm -i ( --install )
yum install
Debian系 dpkg -i ( --install )
apt-get install
openSUSE zypper in ( install )

アップデート

サブコマンド
RedHat系 rpm -U ( --upgrade )
-F ( --freshen )
yum update
upgrade
check-update
Debian系 dpkg -E
-G
apt-get upgrade
dist-upgrade
update
openSUSE zypper up ( update )
list-updates ( lu )

アンインストール

サブコマンド
RedHat系 rpm -e ( --erase )
--nodeps
yum remove
Debian系 dpkg -r ( --remove )
-P ( --purge )
apt-get remove
openSUSE zypper rm ( remove )
1
0
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
1
0