1
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.

yumでよく使うコマンド

Posted at

yumでよく使うコマンドについて記載


# rpmファイルやヘッダなどのキャッシュを削除
$yum clean all

# パッケージリストをアップデート
$yum list updates

# アップデート
$yum update mysql

# アップデート可能なパッケージリストを表示する
$yum check-update

# 特定パッケージを除外してアップデート
$yum update --exclude=パッケージ名

# 特定パッケージを除外してアップデート(ワイルドカード)
$yum update --exclude='kernel*'

# 特定パッケージを除外してアップデート(ワイルドカード、複数指定)
$yum update --exclude='php* python*'

# インストール
$yum install mysql

# スペース区切りで複数可能。
$yum install mysql mysql-devel mysql-server mysql-utilities

# インストール(ワイルドカード)
$yum install mysql*

# 削除
$yum remove mysql

# パッケージ一覧を表示
$yum list all パッケージ名

# インストール済みパッケージ
$yum list installed パッケージ名

# 利用可能パッケージ
$yum list available パッケージ名

# インストール確認でyesを入力する
$yum install -y mysqld

# 別のリポジトリからインストールする
$yum --enablerepo=remi install php

# ダウンロードしたパッケージを削除
$yum clean packages

# 現在有効なリポジトリの一覧を表示する
$yum repolist

# 現在無効なリポジトリの一覧を表示する
$yum repolist disabled

# パッケージの情報を表示
$yum info パッケージ名

# パッケージを検索
$yum search パッケージ名

以上

1
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
1
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?