Menu
blog.headdesk.me
blog.headdesk.me

Updating RHEL to specific minor release

Posted on 2014/03/142014/03/14

There are times when updating to the latest minor release is not preferred, maybe a software compatibility issue or just plain stupidity. On RHEL 6.1 and beyond, one can utilzie the releasever parameter to lock the update to specific one. For example:

yum –releasever=6.2 update

But what about RHEL5.x? Redhat suggested mounting the corresponding ISO and set it up as a local repository. Lots of work especially when it’s required for no good reason.

Here there seems to be another way to do it. First, using the update-to option to install the redhat-release package you need. For instance, I want to upgrade from 5.7 to 5.8:

yum update-to redhat-release-5Server-5.8.0.3

Thereis a little trick here, the last release digit needs to be guessed. So I tried from 5.8.0.0 and finally found 5.8.0.3 is available. It can be done with the yum info command.

Next thing is to prevent further update of the redhat-release package. Edit /etc/yum.conf and add

exclude=redhat-release*

Then run yum update as usual.

[root@server ~]# lsb_release  -r
Release:    5.8

References:

  • https://access.redhat.com/site/solutions/92383

Loading

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Full text search

Recent Posts

  • Generate secure password
  • AWS Compute Savings Plans
  • AWS Zonal Shift
  • Coffee break…
  • Prevent private key from being committed to git
  • aws (14)
  • coffee (2)
  • headfi (1)
  • linux (9)
  • others (61)
  • security (2)
  • tech (41)
  • terraform (3)
  • wordpress (2)

Loading

apache aws awscli azure backup boot cloud coffee docker ec2 EL8 ElasticBeanstalk espresso featured git kernel lelit linux lvm meltdown MFA nat gateway php power proliant python rdp Redhat RHEL rpm Ryzen scp security smartarray smart switch snapshot spectre tech terraform ubuntu ubuntu upgrade vpn windows wordpress workspace

©2026 blog.headdesk.me | Powered by SuperbThemes