This post will show you how to display detailed package informaion on your centos or rhel system. you will see that how to use “yum” and “yumdb” commands to check the detailed pakcage information.
The difference of above two command, yum command can check the package information whatever the package installed or not. and yumdb command just only can display the additional pakcage information that installed on the current linux system.
CentOS /RHEL Display Detailed package information using Yum command
To display the additional pakcage information for “wget” package by running the following command:
yum info wget
outputs:
[root@osetc Desktop]# yum info wget Loaded plugins: fastestmirror, langpacks adobe-linux-x86_64 | 951 B 00:00 base | 3.6 kB 00:00 chrome | 951 B 00:00 epel/x86_64/metalink | 5.9 kB 00:00 epel | 4.4 kB 00:00 extras | 3.4 kB 00:00 google-chrome | 951 B 00:00 mysql-connectors-community | 2.5 kB 00:00 mysql-tools-community | 2.5 kB 00:00 mysql56-community | 2.5 kB 00:00 nux-dextop | 2.9 kB 00:00 updates | 3.4 kB 00:00 virtualbox | 951 B 00:00 (1/2): epel/x86_64/primary_db | 3.7 MB 00:08 (2/2): nux-dextop/x86_64/primary_db | 1.1 MB 00:11 (1/3): google-chrome/primary | 1.9 kB 00:00 (2/3): epel/x86_64/updateinfo | 212 kB 00:01 (3/3): epel/x86_64/pkgtags | 1.3 MB 00:03 Loading mirror speeds from cached hostfile * base: mirror.centos.com * epel: ftp.centos.com * extras: mirror.centos.com * nux-dextop: li.nux.ro * updates: mirror.centos.com google-chrome 3/3 Installed Packages Name : wget Arch : x86_64 Version : 1.14 Release : 10.el7 Size : 2.0 M Repo : installed From repo : anaconda Summary : A utility for retrieving files using the HTTP or FTP protocols URL : http://www.gnu.org/software/wget/ License : GPLv3+ Description : GNU Wget is a file retrieval utility which can use either the HTTP : or FTP protocols. Wget features include the ability to work in the : background while you are logged out, recursive retrieval of : directories, file name wildcard matching, remote file timestamp : storage and comparison, use of Rest with FTP servers and Range : with HTTP servers to retrieve files over slow or unstable : connections, support for Proxy servers, and configurability. Available Packages Name : wget Arch : x86_64 Version : 1.14 Release : 10.el7_0.1 Size : 545 k Repo : updates/7/x86_64 Summary : A utility for retrieving files using the HTTP or FTP protocols URL : http://www.gnu.org/software/wget/ License : GPLv3+ Description : GNU Wget is a file retrieval utility which can use either the HTTP : or FTP protocols. Wget features include the ability to work in the : background while you are logged out, recursive retrieval of : directories, file name wildcard matching, remote file timestamp : storage and comparison, use of Rest with FTP servers and Range : with HTTP servers to retrieve files over slow or unstable : connections, support for Proxy servers, and configurability.
CentOS /RHEL Display Detailed package information using yumdb command
If the yumdb command is not able to use or the command can not find whle runng this command, you need to install “yum-utils” package so that yumdb command is available for use. issue the following command:
yum install yum-utils
outputs:
[root@devops /]# yum install yum-utils Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.btte.net * updates: mirrors.yun-idc.com Resolving Dependencies --> Running transaction check ---> Package yum-utils.noarch 0:1.1.31-24.el7 will be updated ---> Package yum-utils.noarch 0:1.1.31-25.el7_0 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Updating: yum-utils noarch 1.1.31-25.el7_0 updates 111 k Transaction Summary ================================================================================ Upgrade 1 Package Total download size: 111 k s this ok [y/d/N]: y Downloading packages: updates/7/x86_64/prestodelta | 245 kB 00:07 Delta RPMs reduced 111 k of updates to 21 k (80% saved) yum-utils-1.1.31-24.el7_1.1.31-25.el7_0.noarch.drpm | 21 kB 00:06 Finishing delta rebuilds of 1 package(s) (111 k) Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : yum-utils-1.1.31-25.el7_0.noarch 1/2 Cleanup : yum-utils-1.1.31-24.el7.noarch 2/2 Verifying : yum-utils-1.1.31-25.el7_0.noarch 1/2 Verifying : yum-utils-1.1.31-24.el7.noarch 2/2 Updated: yum-utils.noarch 0:1.1.31-25.el7_0 Complete!
To check “wget” package if it is installed currently on your system, issue the following command:
rpm -qa | grep wget
If you do not get any output about wget, it indicate that wget pcakge is not installed.
To display the detailed information for wget package using “yumdb” command, type:
yumdb info wget
outputs:
[root@devops /]# yumdb info wget Loaded plugins: fastestmirror, langpacks wget-1.14-10.el7_0.1.x86_64 checksum_data = 1900dec33a0010d5c41d570e5ee87ec174e194d5eb9b864583b73e04098ec9e5 checksum_type = sha256 command_line = install wget from_repo = updates from_repo_revision = 1419044343 from_repo_timestamp = 1419044440 installed_by = 1000 origin_url = http://mirrors.neusoft.edu.cn/centos/7.0.1406/updates/x86_64/Packages/wget-1.14-10.el7_0.1.x86_64.rpm reason = user releasever = 7 var_uuid = a62288e7-7af2-4bed-b2b1-9c4661b6e571
done…..