LoginSignup
0
0

More than 3 years have passed since last update.

パッケージ管理(Linuxコマンド)

Last updated at Posted at 2021-03-28

yumコマンド{パッケージ管理(CentOS)}

基本的な使い方

 yum [オプション] [コマンド] [パッケージ名称] 

パッケージのインストール

yumコマンドでパッケージのインストールを実行するには、installコマンドを利用してパッケージ名称を指定する。

 yum install <パッケージ名称> 

インストール作業はroot権限が必要なので、このinstallコマンドもroot権限で実行する必要がある。

command example
[root@ip-10-0-0-15 html]# sudo su
[root@ip-10-0-0-15 html]# 
[root@ip-10-0-0-15 html]# yum install httpd

パッケージの情報表示

パッケージ名称だけではその内容がよくわからない場合、infoコマンドにより詳細情報を表示できる。

yum info <パッケージ名称> 

httpdパッケージの詳細情報は以下。

httpd samaly
[ec2-user@ip-10-0-0-15 ~]$ yum info httpd
読み込んだプラグイン:extras_suggestions, langpacks, priorities, update-motd
インストール済みパッケージ
名前                : httpd
アーキテクチャー    : x86_64
バージョン          : 2.4.46
リリース            : 1.amzn2
容量                : 4.0 M
リポジトリー        : installed
提供元リポジトリー  : amzn2-core
要約                : Apache HTTP Server
URL                 : https://httpd.apache.org/
ライセンス          : ASL 2.0
説明                : The Apache HTTP Server is a powerful, efficient, and extensible
                    : web server.
0
0
2

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