Up2date on CentOS 4.2

hci

Verified User
Joined
Jun 15, 2004
Messages
372
I have a box running CentOS 4.2 release. How do I safely up2date it to 4.4 or however that works?

Matthew
 
First you make sure to have the proper excludes set up in /etc/yum.conf:
Code:
exclude=httpd* mysql* php* perl* apache* mod_* MySQL* *ftp* exim* sendmail* php* da_*
You can decide for yourself if you want the kernel excluded as well; if you do, add to the above line kernel*.

Then
Code:
# yum update yum
# yum update
Don't type the # marks; they're just to show you that you do this as root.

Jeff
 
Isn't the kernel the main thing I want updated? For security etc what do I want updated? I also likely want to exclude spamassassin?

Thanks!

Matthew
 
yum update only updates what was installed from RPMs. To see the entire list:
Code:
# rpm -qa
Sure you may want to update the kernel, but you may want to do it when you can be around, instead of every night automatically, in case (for example) it doesn't automatically install all the needed kernel modules (we had this problem with a client this evening).

You need to update a lot more than the RPM stuff; you should run the customapache stuff quite often as well. And there are other programs to update manually, too.

Jeff
 
Back
Top