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.

Updating CentOS Server

Discussion in 'General Discussion' started by Shaya, Apr 18, 2006.

  1. Shaya

    Shaya Member

    Joined:
    Jan 4, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I have a CentOS 4.2 server with CPanel installed.
    I just wanted to make sure if it is appropriate to update CentOS using this commnad:

    yum -y update

    Or is there any CPanel script that could be run in order to update the operating system.

    Thanks.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That should do it. Do check, though, that you have an exclude list in /etc/yum.conf similar to:
    Code:
    exclude=courier* mysql* spamassassin* httpd* perl mysql* php* mod_ssl* imap* squirrelmail* caching-nameserver* exim* apache* kernel*
     
  3. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    Question

    Why would you want to exclude the kernel from the auto update on CentOS ?
     
  4. SunDanceKid

    SunDanceKid Member

    Joined:
    Dec 26, 2005
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Hello - I have similar questions with CentOS...

    I want to make sure everything all software is current and up to date and security patches applied but I'm confused as to if I should use yum or the updates in Cpanel or both. What does Cpanel handle and what do I need to do manually?
     
  5. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    /scripts/upcp will handle everything except the kernel,apache,php and assoc modules

    yum install kernel or kernel-smp for the kernel

    and /scripts/easyapache to update apache,php and assoc modules


    and if you need to update perl there is a update installer for perl5.8.7 locate at layer1.cpanel.net

    and as a personal preference I removed kernel* exclusion from the yum.conf so that a cpanel update will update the kernel also (use at your own risk)
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Simply so that you can control when this happens and reboot the server at your convenience. There's always a risk with a new kernel that your server becomes unbootable, so it is usually nice to know that if you have to reboot your server (e.g. a power failure) then you know whether it will try and come up on a new kernel. If you have the kernel upgrading automatically, it could be pot luck as to when the new kernel will be introduced.
     
  7. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    Good point

    I am always where I have console access so never worried about it but you do have a valid point there :)
     
Loading...

Share This Page