このエントリーをはてなブックマークに追加


yumコマンドでパッケージ情報を確認する方法・infoオプション

yumコマンドでinfoオプションとパッケージ名を渡すとパッケージ情報を取得し表示することができます。
以下に使用例を記します。 使用したLinuxディストリビューションはCentOS6になります。


関連記事

yumでパッケージ情報を取得する

以下の構文でパッケージの情報を取得することができます。

yum info パッケージ名

以下にmysql-serverとphpをパッケージ名として使用してyum infoを実行した時の出力例を記します。

yum info mysql-server

[sakura@centos6 ~]$ yum info mysql-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
base                                                     | 3.7 kB     00:00
base/primary_db                                          | 4.5 MB     00:01
extras                                                   | 3.5 kB     00:00
extras/primary_db                                        |  23 kB     00:00
updates                                                  | 3.5 kB     00:00
updates/primary_db                                       | 4.6 MB     00:01
Installed Packages
Name        : mysql-server
Arch        : x86_64
Version     : 5.1.66
Release     : 2.el6_3
Size        : 25 M
Repo        : installed
From repo   : updates
Summary     : The MySQL server and related files
URL         : http://www.mysql.com
License     : GPLv2 with exceptions
Description : MySQL is a multi-user, multi-threaded SQL database server. MySQL
            : is a client/server implementation consisting of a server daemon
            : (mysqld) and many different client programs and libraries. This
            : package contains the MySQL server and some accompanying files and
            : directories.

yum info php

[sakura@centos6 ~]$ yum info php
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
Available Packages
Name        : php
Arch        : x86_64
Version     : 5.3.3
Release     : 14.el6_3
Size        : 1.1 M
Repo        : updates
Summary     : PHP scripting language for creating dynamic web sites
URL         : http://www.php.net/
License     : PHP
Description : PHP is an HTML-embedded scripting language. PHP attempts to make
            : it easy for developers to write dynamically generated webpages.
            : PHP also offers built-in database integration for several
            : commercial and non-commercial database management systems, so
            : writing a database-enabled webpage with PHP is fairly simple. The
            : most common use of PHP coding is probably as a replacement for CGI
            : scripts.
            :
            : The php package contains the module which adds support for the PHP
            : language to Apache HTTP Server.

以上、yumによるパッケージ情報の取得方法でした。



トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-10-16 (日) 11:34:16