how to get package update availaibilty

Latest response

Hello,

I am running RHEL6.3 on HP Blade servers. These servers are not connected with RHN network as it's production servers and connectivity to outer network is blocked.

Now I have the list of packages installed on my server with rpm -qa but i want to know which of these package have latest updates and if any package has any security vulnerability.

Appreciate any help how to find this.

Responses

Hi,

You can see the latest released packages for RHEL 6 at ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/. These are the source RPMs, but at least you can compare the versions and releases. Or you can download the Red Hat Enterprise Linux 6.7 Binary DVD from https://access.redhat.com/downloads/content/69/ver=/rhel---6/6.7/x86_64/product-software and either check the packages which are in the ISO, or copy the ISO to the server and use it as a Yum repository. For more information about the second option see https://access.redhat.com/solutions/328863.

Radek

Hi,

Thanks for the reply. I have created the repo of 6.7.

Now I want to further refined it:

(1) Is there any way I can lists all current installed packages and update package available in 1 commands. For eg if I do yum lists update it shows me update package version available but not current installed package version. for getting it I need to yum list package name for each specific. I want to compare all package in 1 command.

(2) The releasing date of installed package & new package.

Regards,

(1) I think you might find the following command useful: yum --assumeno update. The first part of its output contains pair of lines such as the following:

---> Package tar.x86_64 2:1.23-13.el6 will be updated
---> Package tar.x86_64 2:1.23-14.el6 will be an update

Alternatively, you can run "yum list" with the names of all the installed packages as parameters:

yum list `rpm -qa --qf '%{NAME} '`

In this case, the output has two parts, and "Installed Packages" and "Available Packages". The former contains the names and versions of all your currently installed packages (whether or not a newer version is in the repos), and the latter contains names and versions of available updates.

(2) I'm afraid this information isn't part of the RPM metadata or the yum repodata. Only the build date -- when the package was build in the Red Hat build system; use:

date --date @`rpm -q --qf '%{BUILDTIME}' rpm`

(replace 'rpm' with any installed package name), or the file's creation/modification time in the mounted ISO; use:

ls -l /path/to/the/mount/point/path/to/the/packages/file-name.rpm

However, if you look at https://rhn.redhat.com/errata/rhel-server-6-errata.html, you can see the history of all updates for RHEL 6, including the real release dates.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.