0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linucレベル1勉強メモ #44

Posted at

第四章 リポジトリとパッケージ管理

練習問題4.8
yumコマンドを使って、システムにインストール済みのパッケージをすべて最新版にアップデートしたいと思います。実際にアップデートする前に、アップデートされるパッケージの情報を確認したい場合に実行する適切なコマンドを選択してください。

A. yum update-list

B. yum updatepkgs

C. yum update

D. yum check-update

E. yum --list-upgrade

(解答)D

(解説)
yum updateを実行すると、システムにインストール済みのパッケージがすべて最新版にアップデートされます。その前にアップデートされるパッケージを確認するには、yum check-updateコマンドを実行します。従って、正解は選択肢Dです。選択肢A, B, Eは無効なコマンドです。

yumコマンド
CentOSやFedoraでは、APTツールに相当するものとして使います。YUMの設定は、/etc/yum.confと/etc/yum.repos.dディレクトリ以下のファイルで行います。

yumのサブコマンド

  • check-update
    アップデート対象のパッケージリストを表示する
  • update
    指定したパッケージをアップデートする
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?