LoginSignup
0
0

More than 5 years have passed since last update.

【Linux】yumコマンド

Posted at

投稿日:2016-11-19

環境

  • Amazon Linux AMI 2016.09-release

yumコマンド

パッケージをインストールする

yum install [パッケージ]

サーバーにあるパッケージを一覧する

yum list

パッケージの情報を表示する

yum info [パッケージ]

既にインストールしたソフトウェアの一覧を表示

yum list installed

インストールしているか探す

yum list installed | grep [パッケージ]

ソフトウェアをアップデート
更新情報の確認

yum check-update

更新

`yum update
[パッケージ]を指定することも可能

セキュリティ更新の確認

yum --security check-update

セキュリティ更新

yum --security update

ソフトウェアをアンインストール

yum remove [パッケージ]

外部リポジトリを追加
epel
$ rpm -ivh http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
remi
$ rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
OSによって適切なURLを探して変更する
epel

remi

よく使うオプション
y/n をスキップ

yumコマンドの直後に -y をつけると、全自動でyesになります

リポジトリを指定

-enablerepo=[リポジトリ]

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