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.

Cent Os 3.3 - 3.4

Discussion in 'General Discussion' started by fusioncroc, Feb 4, 2005.

  1. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    I just wondered why my centos has'nt upgraded im still running 3.3 whats the fastest way to upgrade it ?
     
  2. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    If you are using yum, switch the yum.conf file to the 3.4 directory at whatever mirrors you are currently using, then do a yum upgrade.
     
  3. Secret Agent

    Secret Agent Guest

    Hi I have 3.3. CentOS and this is my yum.conf

    [main]
    exclude=mod_ssl* httpd* perl mysql* php* spamassassin*
    cachedir=/var/cache/yum
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1

    [base]
    name=Red Hat Linux $releasever - $basearch - Base
    #baseurl=http://192.168.1.235/mirrors/centos/3/os/i386/
    baseurl=http://planetmirror.com/pub/caosity/centos/3.1/os/i386/

    [updates]
    name=Red Hat Linux $releasever - Updates
    #baseurl=http://192.168.1.235/mirrors/centos/3/updates/i386
    baseurl=http://planetmirror.com/pub/caosity/centos/3.1/updates/i386/



    What do I edit to upgrade to 3.4?
     
  4. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Point the base, Updates and Addons section of yum (the base URLs) to the 3.4 directory rather than 3 or 3.1.

    For example:

    [base]
    name=Red Hat Linux $releasever - $basearch - Base
    baseurl=http://public.planetmirror.com/pub/caosity/centos/3.4/os/i386/
     
  5. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
  6. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    thanks haze but when i try to upgrade i get

    [root@server1 /root] yum update
    Cannot find any conf file.

    how can i fix this ?
     
  7. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    Actualy i just checked /etc and found yum.conf-SAVE should i do cp yum.conf-SAVE yum.conf ?

    edit: would secret agents yum.conf be ok for me to use or would'nt it work because of the centos3.1 entries ?
     
    #7 fusioncroc, Feb 4, 2005
    Last edited: Feb 4, 2005
  8. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Use the following yum.conf, you can adjust the mirrors to your liking, but this should do you fine for now.

    Code:
    [main]
    exclude=mod_ssl* httpd* perl mysql* php* spamassassin*
    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://mirror.centos.org/centos-3/$releasever/os/$basearch/
    gpgcheck=1
    
    #released updates
    [update]
    name=CentOS-$releasever - Updates
    baseurl=http://mirror.centos.org/centos-3/$releasever/updates/$basearch/
    gpgcheck=1
    
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    baseurl=http://mirror.centos.org/centos-3/$releasever/addons/$basearch/
    gpgcheck=1
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    baseurl=http://mirror.centos.org/centos-3/$releasever/extras/$basearch/
    gpgcheck=1
    
    I've put the above config file online so you can do this in a couple easy steps:

    cd /etc
    wget justmanaged.com/files/yum_conf.txt
    mv yum.conf yum.conf_old ( if it exists )
    mv yum_conf.txt yum.conf
     
    #8 haze, Feb 4, 2005
    Last edited: Feb 4, 2005
  9. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    thanks haze
     
  10. fusioncroc

    fusioncroc Well-Known Member

    Joined:
    Sep 28, 2004
    Messages:
    261
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    U.K.
    All installed now centos 3.4 now :)
     
  11. Secret Agent

    Secret Agent Guest

  12. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    CentOS mirrors were down shortly yesterday while the devs were syncing the CentOS4 final files. Try again, otherwise pick mirrors from the list on CentOS.org which are closest to you.
     
  13. Secret Agent

    Secret Agent Guest

    I did that again with your version of yum conf and the update processed but WHM is still showing 3.3. Any reason why?
     
  14. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
  15. Secret Agent

    Secret Agent Guest

    :( I'm a bit confused honestly

    This is my centos-yum.conf file

    [main]
    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://mirror.centos.org/centos-3/$releasever/os/$basearch/
    gpgcheck=1

    #released updates
    [update]
    name=CentOS-$releasever - Updates
    baseurl=http://mirror.centos.org/centos-3/$releasever/updates/$basearch/
    gpgcheck=1

    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    baseurl=http://mirror.centos.org/centos-3/$releasever/addons/$basearch/
    gpgcheck=1

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    baseurl=http://mirror.centos.org/centos-3/$releasever/extras/$basearch/
    gpgcheck=1

    #packages in testing
    #[testing]
    #name=CentOS-$releasever - Testing
    #baseurl=http://mirror.centos.org/centos-3/$releasever/testing/$basearch/
    #gpgcheck=1


    All I did originally was run yum update. I did nothing else. I'm not quite sure what I'm supposed to be looking for in the release notes you mentioned. My yum.conf file is the one I'm using that you pasted in your previous post

    Please help me out because I'm lost now
     
  16. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Code:
    To manually upgrade to CentOS-3.4 (now)
    ----------------------------------------------------------
    
    first
    
    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)
    
    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
    
    yum update
    As taken from: http://www.centos.org/modules/news/article.php?storyid=34

    Have you completed the above ? If so, what does cat /etc/*release* print to screen ?
     
  17. Secret Agent

    Secret Agent Guest

    root@server [~]# cat /etc/*release*
    LSB_VERSION="1.3"
    CentOS release 3.3 (final)

    I'll try the rpm now
     
  18. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    The forum automatically changed the urls in the above box, i've fixed them, should work now.
     
  19. Secret Agent

    Secret Agent Guest

    Its been retrieving for about 5 minutes now. Is this normal? Must be a big rpm?
     
  20. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    The mirrors are probably getting hit hard with the release of CentOS4 which was just released about an hour ago. Try using a local mirror to find the file or wget the rpms and then use the rpm -[flags] rpmname.rpm to update followed by yum update ( fix up your mirrors in your yum.conf to servers local to you ).
     
Loading...

Share This Page