how to get package update availaibilty
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
(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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
