Best - Safest way to upgrade everything

Fred.

Verified User
Joined
Sep 5, 2009
Messages
216
Best - Safest way to upgrade everything?

Hello,

I want to upgrade my Centos 5.4 to the latest centos release, upgrade the kernel and all that need to be upgraded to be safe.

Whats the best / safest way to do it on a production server?

Can i just run "yum update"?

this is my exclude line (yum.conf)
Code:
exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* bind-chroot* perl*

the same as Jeff

After i run "yum list updates"
I can see bind is still in the list? is this normal?

I also run custombuild on regular bases. This works perfect.

Thanks.
 
Last edited:
If you've installed BIND through yum, then it'll update through yum. If you installed BIND from the shell (or if DirectAdmin installed it; I really don't remember), then even if it's not in the exclude list, it still won't get updated. Only installed RPMs are updated.

I don't think anyone can tell you if it's safe to run yum update on your server; I think that's a determination you need to make yourself because you know what's installed.

I think you can run yum in some kind of test mode where it will tell you what it would update, but doesn't actually do it.

Check man yum.

Jeff
 
Code:
yum update

This will tell you what will be updated and it asks you to confirm before it does anything.
 
We have updated all our CentOS 5.4 x86/x86_64 based systems without any problems to CentOS 5.5 x86/x86_64.

Using 'yum update'.

The only problem we had, had something to do with
Transaction Check Error:
file /etc/aliases from install of setup-2.5.58-7.el5.noarch conflicts with file from package da_exim-4.69-1.i386
We fixed this with the commands below
mv /etc/aliases /etc/aliases.bak
yum clean all
rpm -Fvh --replacefiles /var/cache/yum/base/packages/setup-2.5.58-7.el5.noarch.rpm
yum update
mv /etc/aliases.bak /etc/aliases
 
If you've installed BIND through yum, then it'll update through yum. If you installed BIND from the shell (or if DirectAdmin installed it; I really don't remember), then even if it's not in the exclude list, it still won't get updated. Only installed RPMs are updated.

I don't think anyone can tell you if it's safe to run yum update on your server; I think that's a determination you need to make yourself because you know what's installed.

I think you can run yum in some kind of test mode where it will tell you what it would update, but doesn't actually do it.

Check man yum.

Jeff

Directadmin was installed on a clean system, so directadmin installed bind.
I'm going to try that.

thanks

Code:
yum update

This will tell you what will be updated and it asks you to confirm before it does anything.

I know, i did it before. :)

We have updated all our CentOS 5.4 x86/x86_64 based systems without any problems to CentOS 5.5 x86/x86_64.

Using 'yum update'.

The only problem we had, had something to do withWe fixed this with the commands below

Thanks for the info.
I'm planning the upgrade for one of this days..
 
While da_exim is an RPM it wasn't installed through a yum repository so yum won't/can't update it.

Jeff
 
Back
Top