yum update all for current OS revision

Latest response

Hello,

I inherited a number of RHEL servers of a wide array of OS versions and have slowly been migrating them to RHEL 6.6, as it was the latest version of 6 when this project started.
Now that most of our boxes are on that standard version ..

  • Is there a way to run yum update without having it patch the OS up to 6.7?

Responses

Do you have a Satellite server or do you connect directly to RHN?

This determines whether or not it is an easy job explaining what to do.

For a Satellite it is an almost easy action to do.
spacewalk-clone-by-date using the date of your previous patch-date.

Hello and thanks. Unfortunately we do not have Satellite and pull updates from RHN directly.

This make the situation harder, but there is one approach that may work.

run following command on a server that has already been patched, if on rpm level exactly the same as your newly to patch server.
rpm -qa>patch-level.txt

copy the patch-level.txt to the new server

run

cat patch-level.txt| xargs yum -y update

I know it cat patch-level.txt can be used as an "argument", but fail to get the back quotes visible

Interesting .. I'll give it a try. Thanks!

Let us know how it goes, Brian!

Close

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