How to keep yum from updating OS version

General support questions including new installations
Post Reply
pennrabb
Posts: 28
Joined: 2008/04/08 16:34:21

How to keep yum from updating OS version

Post by pennrabb » 2009/08/03 20:44:54

My server's manufaturer (supermicro) only provides RAID drivers for certain RHEL (CentOS) releases, 4.4, 5.2 and 5.9 are presently available. An accidental yum update recently took the server from CentOS 4.4 to 4.7, and abandoned the RAID driver. My choces are to reload 4.4 or go to 5.2. Since I will probably do the latter, is there a way to have yum just update within the distro, and not the distro version? Can someone ID the rpms I could exclude to be sure that the OS version remains static?

wulfpack74
Posts: 85
Joined: 2008/03/17 22:26:54

Re: How to keep yum from updating OS version

Post by wulfpack74 » 2009/08/03 20:50:05

I believe you can exclude the kernel package from updating if you run a yum update

yum --exclude=kernel update

rsw686
Posts: 39
Joined: 2008/12/01 01:34:19

Re: How to keep yum from updating OS version

Post by rsw686 » 2009/08/04 23:49:31

You don't need to reload 4.4. You can just select the older kernel from the grub menu to boot. Once you are up and running either remove the newer kernel or edit /etc/grub.conf to set the default one to boot.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

How to keep yum from updating OS version

Post by pschaff » 2009/08/07 17:36:17

I'd go a different route. Have you considered forgetting the driver and using [url=http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5]Software RAID[/url]?

Post Reply