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.

Autoupdate CentOS 3.4 -> 3.5: why some and not others?

Discussion in 'General Discussion' started by verdon, Jun 20, 2005.

  1. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I'm curious why some servers Autoupdate CentOS 3.4 -> 3.5 while others do not. Is it related to what's in yum.conf? Are there other variables?

    My setup is pretty straight fwd, yet no auto update...

    WHM 10.1.0 cPanel 10.2.0-R82
    CentOS 3.4 i686 - WHM X v3.1.0
    Manual Updates Only (RELEASE tree)
    cPanel Package Updates - Automatic
    Security Package Updates - Automatic

    I thought I had crafted my yum.conf file carefully, based on examples here, a few months ago...
    Code:
    [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
    gpgcheck=1
    exclude=kernel* httpd* apache* exim* qmail* mod_* php* perl perl* perl-* mysql* perl-suidperl perl-CPAN perl-CGI caching-nameserver* imap* spamassassin* squirrelmail* mod_ssl*
    
    [base]
    name=CentOS-$releasever - Base
    baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    
    #released updates 
    [update]
    name=CentOS-$releasever - Updates
    baseurl=http://mirror.centos.org/centos/$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/$releasever/addons/$basearch/
    gpgcheck=1
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    
    Yet it is quite different from this example (from the thread linked to in WHM news)...
    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
    tolerant=1
    exactarch=1
    
    [base]
    failovermethod=priority
    name=Centos-$releasever - $basearch/$arch - Base
    baseurl=http://linux.mirrors.layeredtech.com/centos/$releasever/os/$basearch
    http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/$releasever/os/$basearch
    http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/$releasever/os/$basearch
    http://mirror.cs.wisc.edu/pub/mirrors/linux/caosity.org/centos-3/$releasever/os/$basearch
    http://acmserver.cs.ucr.edu/centos/centos-3/$releasever/os/$basearch
    
    [updates]
    failovermethod=priority
    name=Centos-$releasever - $basearch/$arch - Updates
    baseurl=http://linux.mirrors.layeredtech.com/centos/$releasever/updates/$basearch
    http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/$releasever/updates/$basearch
    http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/$releasever/updates/$basearch
    http://mirror.cs.wisc.edu/pub/mirrors/linux/caosity.org/centos-3/$releasever/updates/$basearch
    http://acmserver.cs.ucr.edu/centos/centos-3/$releasever/updates/$basearch
    
    [addons]
    failovermethod=priority
    name=Centos-$releasever - $basearch/$arch - Addons
    Baseurl=http://linux.mirrors.layeredtech.com/centos/$releasever/addons/$basearch
    http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/$releasever/addons/$basearch
    http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/$releasever/addons/$basearch
    http://mirror.cs.wisc.edu/pub/mirrors/linux/caosity.org/centos-3/$releasever/addons/$basearch
    http://acmserver.cs.ucr.edu/centos/centos-3/$releasever/addons/$basearch
    
    [extras]
    failovermethod=priority
    name=Centos-$releasever - $basearch/$arch - Extras
    baseurl=http://linux.mirrors.layeredtech.com/centos/$releasever/extras/$basearch
    http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/$releasever/extras/$basearch
    http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/$releasever/extras/$basearch
    http://mirror.cs.wisc.edu/pub/mirrors/linux/caosity.org/centos-3/$releasever/extras/$basearch
    http://acmserver.cs.ucr.edu/centos/centos-3/$releasever/extras/$basearch
    
    So, is it a question of my configuration, or a question of the mirror in my yum.conf, or some other thing?

    TIA :)
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    It may well be down to the mirrors you are using.

    Mentioned in the CentOS-Announce mailing list on the 17th of June this year:

    I take this as meaning that all mirrors should have 3.5 in place as default, so even if you have your mirrors set in yum.conf along the lines of http://mirror.centos.org/centos/$releasever/os/$basearch/, you should still get 3.5.

    Its possible that this change hasn't fully occurred on the mirrors you are using. I'm using the same mirror, however to prompt the upgrade prior to when the auto-upgrades begin, I changed all occurrences of $releasever to 3.5, changing back to $releasever a couple of days after the upgrade.
     
  3. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Thanks for the tip...

    Actually, it turned out to be an error earlier in the /scripts/upcp process, that I missed, that was causing the problem...

    Error: Unsigned Package /var/cache/yum/update/packages/telnet-0.17-26.EL3.3.i386.rpm
    Error: You may want to run yum clean or remove the file:
    /var/cache/yum/update/packages/telnet-0.17-26.EL3.3.i386.rpm

    ..once I looked after that, everything went much better :)
     
Loading...

Share This Page