Page 2 of 2

Re: CentOS 5.3

Posted: Wed May 06, 2009 5:03 pm
by breun
Your yum configuration seems to be missing the CentOS base and updates repositories...

Re: CentOS 5.3

Posted: Wed May 06, 2009 5:25 pm
by damon
breun wrote:Your yum configuration seems to be missing the CentOS base and updates repositories...
Oh, ok, it's always something. :oops:

Code: Select all

# yum repolist
Loading "fastestmirror" plugin
repo id              repo name                                             status
asl-2.0              Atomicorp -  - Atomic Secured Linux 2.0     enabled
atomic              CentOS / Red Hat Enterprise Linux 5 - at     enabled
extras              CentOS-5 - Extras                                   enabled
plesk                Plesk Server Administrator                         enabled
This is a brand new server and I just used the atomic scripts to setup Centos and ASL

Now that I've checked I do have the Centos base/updates but they were disabled. so now I've got

Code: Select all

# yum repolist
Loading "fastestmirror" plugin
repo id              repo name                                 status
asl-2.0              Atomicorp -  - Atomic Secured Linux 2.0   enabled
atomic               CentOS / Red Hat Enterprise Linux 5 - at  enabled
base                 CentOS-5 - Base                           enabled
extras               CentOS-5 - Extras                         enabled
plesk                Plesk Server Administrator                enabled
updates              CentOS-5 - Updates                        enabled
Question: Should I leave these two enabled all the time or just when I know I want to update Centos?

Re: CentOS 5.3

Posted: Wed May 06, 2009 5:40 pm
by damon
Success!

Code: Select all

# cat /etc/redhat-release
CentOS release 5.3 (Final)
A whole lot of rpm .rpmnew files were created, I'm always a little confused on what I should do with those, of the hundreds of config files it takes a lot of study to have any idea how a particular one should be setup.

Re: CentOS 5.3

Posted: Wed May 06, 2009 5:44 pm
by breun
damon wrote:Question: Should I leave these two enabled all the time or just when I know I want to update Centos?
Always.

Re: CentOS 5.3

Posted: Wed May 06, 2009 5:46 pm
by breun
damon wrote:A whole lot of rpm .rpmnew files were created, I'm always a little confused on what I should do with those, of the hundreds of config files it takes a lot of study to have any idea how a particular one should be setup.
Your system should continue working without doing anything, but I believe it's a good habit to merge any changes from your current configs into the rpmnew files and then making those the new configs (and restarting affected services so the changes take effect).

Re: CentOS 5.3

Posted: Wed May 06, 2009 5:57 pm
by damon
breun wrote:Your system should continue working without doing anything, but I believe it's a good habit to merge any changes from your current configs into the rpmnew files and then making those the new configs (and restarting affected services so the changes take effect).
Thanks, so should I only be concered with the ones where I have made changes to the file?

My understanding is that the rpmnew files are a new version of the default file, so on config files that I haven't changed, is it good practice to make the rpmnew the new config?

Re: CentOS 5.3

Posted: Thu May 07, 2009 2:28 am
by breun
damon wrote:Thanks, so should I only be concered with the ones where I have made changes to the file?

My understanding is that the rpmnew files are a new version of the default file, so on config files that I haven't changed, is it good practice to make the rpmnew the new config?
  • If you made changes: merge them into the rpmnew file and then start using the merged file. The diff command can be very helpful here. I like to use diff -u (unified diff) and diff -y (side-by-side) when comparing files.
  • If you didn't make any changes: start using the rpmnew file.
  • In both cases: make sure you can revert to your previous config in case things don't work out.

Re: CentOS 5.3

Posted: Mon May 18, 2009 11:42 am
by Vampyre
Kalimari wrote:it's probably worth noting that running yum -y update will "upgrade" qmail to postfix if you are using Plesk 9.X. This will get around that small issue:

Code: Select all

yum -y update yum
yum clean all
yum -y update glibc
yum -y update --exclude=psa-mail-pc-driver
Thank you for the tip, Kalimari.
You've solved another issue for me. ;)