The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HOWTO: rh9 to CentOS 3.3

Discussion in 'General Discussion' started by bazzi, Jan 6, 2005.

?

Is it usefull?

  1. Yes

    19 vote(s)
    73.1%
  2. No

    1 vote(s)
    3.8%
  3. I already did the upgrade!

    6 vote(s)
    23.1%
  1. bazzi

    bazzi Well-Known Member

    Joined:
    May 23, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Because there wasn't a Howto avalible for upgrading rh9 with Cpanel to CentOS 3.3, here is a little howto:

    first I rebuild the rpm databases:
    Code:
    # rpm -vv --rebuilddb
    Then I installed yum on my rh9:
    Code:
    # rpm -ivh http://download.fedora.us/fedora/redhat/9/i386/RPMS.stable/yum-2.0.3-0.fdr.1.rh90.noarch.rpm 
    I then modified /etc/yum.conf to look like this:
    Code:
    [main]
    exclude=httpd* mysql* php* perl* mod_ssl*
    cachedir=/var/cache/yum
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
    tolerant=1
    exactarch=1
    
    [base]
    name=CentOS-$releasever - Base
    baseurl=http://archive.cs.uu.nl/mirror/Linux/cAos/centos/3.3/os/i386/
    gpgcheck=1
    
    #released updates
    [update]
    name=CentOS-$releasever - Updates
    baseurl=http://archive.cs.uu.nl/mirror/Linux/cAos/centos/3.3/updates/i386/
    gpgcheck=1
    
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    baseurl=http://archive.cs.uu.nl/mirror/Linux/cAos/centos/3.3/addons/i386/
    gpgcheck=1
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    baseurl=http://archive.cs.uu.nl/mirror/Linux/cAos/centos/3.3/extras/i386/
    gpgcheck=1
    
    (This is a optimised yum.conf for a server at the netherlands
    You can pick a mirror near you at http://www.centos.org

    After that you need to import the GPG key for the centos RPMs. Issue the following command:
    Code:
    # rpm --import http://mirror.centos.org/centos/3.1/i386/RPM-GPG-KEY-CentOS-3
    Nows the time you want to check you have made appropriate backups, etc ( i hope you all test this out before rolling production servers! ).

    Then:
    Code:
    # yum upgrade
    This will download the rpm headers and determine what needs to be done, play carefull attention of course here and in all parts if this process for errors. Yum will then ask you if you are sure you want to go ahead, if no errors are present, press "y" then "enter".

    This process will take a while, depending on your connection and the gear your installing it on of course.

    After thats done, check for errors, make sure the new kernel is installed by issueing:
    Code:
    # rpm -qa|grep kernel
    You should be presented with a kernel versioned like this: kernel-2.4.21-27.0.1.EL as well as your other kernels previously installed. Check your boot loader to make sure the new kernel is default.

    Run:
    Code:
    # yum update
    If right, it will install nothing new.

    Reboot:
    Code:
    # shutdown -rf now
    Then do:
    Code:
    # /scripts/upcp --force
    And everything will work as it should be!



    But if you get an error here are some fixes:
    If you receive an error about the yum RPM install about missing dependency libxml2-python
    Download and install this RPM
    Code:
    # rpm -ivh http://download.fedoralegacy.org/redhat/9/updates/i386/libxml2-python-2.5.4-3.rh9.i386.rpm
    If you get a problem when upgrade with yum(# yum upgrade) about mrtg (I did), do:
    Code:
    # rpm -qa|grep mrtg
    # rpm -e mrtg-(version show with above command)
    (I have used for this howto the following:
    http://www.webhostingtalk.com/archive/thread/276534-1.html
    )
    If there was a HowTo, sorry but I didn't find it!
     
  2. emeric21

    emeric21 Well-Known Member

    Joined:
    Aug 5, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    That is good
     
  3. abdock

    abdock Member

    Joined:
    Feb 9, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    how to from 3.3 to 3.4 ??

    I followed and now my RH9 is Centros 3.3, thanks for the great how to.

    But how can i keep pace with centros ?

    Rgds,
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You've done pretty much all you need as you should now hopefully being updated through yum when upcp runs overnight - just make sure that you have a decent yum exclude list configured in yum.conf (search the forums).
     
  5. abdock

    abdock Member

    Joined:
    Feb 9, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    the yum update ran up but it still on centros 3.3 and 3.4.

    anywhere i need to change anything for it to pick 3.4

    thanks.
     
  6. Harryhood

    Harryhood Well-Known Member

    Joined:
    Jun 3, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Gamehenge
    At a minimum you would have to change the update servers in your yum.conf file.
     
  7. bazzi

    bazzi Well-Known Member

    Joined:
    May 23, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    To manually upgrade to CentOS-3.4 (now)
    ----------------------------------------------------------

    first

    Code:
    rpm -ivh http://mirror.centos.org/centos/3.4/os/i386/RedHat/RPMS/centos-yumcache-3.1-0.20050105.3.noarch.rpm
    (to avoid the header downloads)

    (Note: If you had poreviously upgraded from CentOS 3.1 then you will already have a cento s-yumcache rpm installed and rpm will complain , in which case use rpm -Fvh)

    Code:
    rpm -Fvh http://mirror.centos.org/centos/3.4/os/i386/RedHat/RPMS/centos-release-3-4.2.i386.rpm
    (to get the new releasever)

    then

    Code:
    yum update
    EDIT: Wrapped with code tags
     
  8. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Trying to upgrade from RH9 to CentOS on a brand new box,

    Followed how to, no errors, all works nicely, server rebooted and comes up with new kernel, but when i run

    Code:
    cat /etc/*release*
    it returns

    Code:
    Red Hat Linux release 9 (Shrike)

    Any ideas???
     
  9. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Try the following:

     
  10. abdock

    abdock Member

    Joined:
    Feb 9, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    postgresql

    [main]
    exclude=httpd* mysql* php* perl* mod_ssl*


    Do i have to add postgresql* to the above list ??

    thanks,
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No, cPanel uses the OS release of postgresql so you shouldn't exclude it. This is the exclude list I use for yum:

    exclude=kernel* php* httpd* perl* mysql* mod_ssl* imap* squirrelmail* spamassassin* caching-nameserver* mailman*
     
  12. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Will this proceedure work for upgrade from Fedora 2 to CentOS 3.4?

    Roger
    Trekcom
     
  13. bazzi

    bazzi Well-Known Member

    Joined:
    May 23, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    it is possible, but you have to look for the kernel, because centos has no experimental kernel such as fedora
     
  14. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Thanks Bazzi.... this looks great.. :)
     
  15. Sinewy

    Sinewy Well-Known Member

    Joined:
    May 15, 2004
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney, Australia
    cPanel Access Level:
    DataCenter Provider
    Definitely do not try this, you are practically downgrading your OS.

    Regards,
    Alan
     
  16. bazzi

    bazzi Well-Known Member

    Joined:
    May 23, 2004
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    but fedora is not very designed for production servers, it is experimental.

    fedora is the test enviroment for the later released RedHet Enterprise and forks...

    Personaly we only use software what is very stable and not expirimental, but it is totaly op to you.
     
  17. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for your response.

    Could you elaborate on this? It would seem to be an improvement to upgrade to an OS where there are bug fixes being done as opposed to a end of life OS where you can't get updates.

    Roger
     

Share This Page