Thursday, 9 January 2020

How to Check RPM Package Info Using YUM Command on CentOS 7



Yum (Yellow Dog Update Modifire) is a tool for RPM package management. Yum can install RPM packages and dependencies are obtained and downloaded automatically.

Step 1. Check yum version: Run the following command to check yum installed versions:

[root@linuxcnf ~]# yum --version
3.4.3
  .............
[root@linuxcnf ~]#

Step 2. Check Package Info: Run the flowing command to check the package installed version and updated version available for installation:

[root@linuxcnf ~]# yum info tar.x86_64
Loaded plugins: fastestmirror
...............
Installed Packages
Name        : tar
Arch        : x86_64
Epoch       : 2
Version     : 1.26
Release     : 29.el7
Size        : 2.7 M
Repo        : installed
Summary     : A GNU file archiving program
URL         : http://www.gnu.org/software/tar/
License     : GPLv3+
Description : The GNU tar program saves many files together in one archive and can
            : restore individual files (or all of the files) from that archive. Tar
            : can also be used to add supplemental files to an archive and to update
            : or list files in the archive. Tar includes multivolume support,
            : automatic archive compression/decompression, the ability to perform
            : remote archives, and the ability to perform incremental and full
            : backups.
            :
            : If you want to use tar for remote backups, you also need to install
            : the rmt package on the remote box.

Available Packages
Name        : tar
Arch        : x86_64
Epoch       : 2
Version     : 1.26
Release     : 35.el7
Size        : 846 k
Repo        : base/7/x86_64
Summary     : A GNU file archiving program
URL         : http://www.gnu.org/software/tar/
License     : GPLv3+
Description : The GNU tar program saves many files together in one archive and can
            : restore individual files (or all of the files) from that archive. Tar
            : can also be used to add supplemental files to an archive and to update
            : or list files in the archive. Tar includes multivolume support,
            : automatic archive compression/decompression, the ability to perform
            : remote archives, and the ability to perform incremental and full
            : backups.
            :
            : If you want to use tar for remote backups, you also need to install
            : the rmt package on the remote box.

[root@linuxcnf ~]#

In above output installed Package details and available packages details is shown.

No comments:

Post a comment