Results 1 to 16 of 16
  1. #1
    Join Date
    Mar 2005
    Posts
    533

    * kernel update to the latest available version

    Hello

    Recently I see this notice in my WHM,
    is there any way that I can update my kernal without reinstalling the OS?

    "
    Security Notice:
    There are several known Linux kernel exploits which may allow local privilege escalation. These exploits have become commonplace in recent weeks and can be avoided by ensuring that your kernel is updated to the latest available version. While cPanel will help ensure your system services and software are up to date, kernel updates are outside the scope of cPanel. Kernels with known vulnerabilities include, but are not limited to, 2.6.9-22 and 2.6.9-34. Please check your running kernel for updates periodically. This will help ensure the overall integrity of your server and data. "


    Thanks

  2. #2
    Join Date
    Jul 2003
    Location
    Goleta, CA
    Posts
    5,550
    What operating system are you using. Pretty much all linux distros have kernels you can use available using yum up2date or apt-get
    Patron: I'd like my free lunch please.
    Cafe Manager: Free lunch? Did you read the fine print stating it was an April Fool's joke.
    Patron: I read the same way I listen, I ignore the parts I don't agree with. I'm suing you for false advertising.
    Cafe Owner: Is our lawyer still working pro bono?

  3. #3
    Join Date
    Mar 2005
    Posts
    533
    Thanks for the reply

    My server System information is : Linux itaco.persianservices.com 2.6.9-34.0.2.ELsmp #1 SMP Fri Jul 7 19:52:49 CDT 2006 i686 i686 i386 GNU/Linux

    So would you please tel me how can I update it?

    Thanks
    Last edited by bear; 05-14-2008 at 05:32 PM. Reason: by request

  4. #4
    Hi,

    I would type:

    yum upgrade

    Then once it has finished processing, reboot the server and type uname -a again to see if it's using the new kernel. It should be.

    If that gives some error, paste it here.

    Do you know what distribution of Linux you are running? The method I posted there will work for quite a few popular distributions, but not all. I can't say how to upgrade it for sure without knowing what distribution.

  5. #5
    Join Date
    Apr 2004
    Location
    Singapore
    Posts
    1,506
    I would suggest running

    yum upgrade kernel

    so it will not break anything if you are having any control panel (eg. cPanel) running.
    tanfwc
    Singapore Managed Colocation
    Singapore BGP Announcement

  6. #6
    yum upgrade shouldn't break cpanel/whm

    It's also worth noting now that I remember it, that Cpanel changes yum.conf to exclude kernel upgrades, so yum upgrade might not affect it. It's worth checking yum.conf if you have Cpanel.

  7. #7
    Join Date
    Mar 2005
    Posts
    533
    Thanks

    This is the yum.conf file contain.

    [main]
    exclude=courier* apache* mod_ssl* httpd* perl mysql* php* spamassassin* exim* k$
    #exclude=courier* apache* mod_ssl* httpd* perl mysql* php* spamassassin* kernel$
    cachedir=/var/cache/yum
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=centos-release
    tolerant=1
    exactarch=1
    retries=20
    obsoletes=1
    gpgcheck=1

    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d



    what changes should I make?>

    Thanks

  8. #8
    Join Date
    Apr 2004
    Location
    Singapore
    Posts
    1,506
    Ok, then you are safe to run yum upgrade then. It will exclude those software manage by the control panel
    tanfwc
    Singapore Managed Colocation
    Singapore BGP Announcement

  9. #9
    I have my fingers crossed for you!

  10. #10
    Join Date
    Mar 2005
    Posts
    533
    Thanks for the reply

    how can I upgrade yum?

    Thanks

  11. #11
    You don't need to upgrade yum.

    What you need to run is:


    yum upgrade


    That command won't upgrade yum, it will upgrade everything (and yum I suppose if yum is out of date)

  12. #12
    Quote Originally Posted by stephanhughson
    I have my fingers crossed for you!
    Amen

    There may be something to help you here IRLAMP:
    http://webhostingtalk.com/showthread.php?t=489019

    *Waves to Stephan

  13. #13
    when i try it yum upgrade

    i show this error

    Installing: kernel ##################### [108/240]
    ls: readlink:: No such file or directory
    ls: file: No such file or directory
    ls: expected: No such file or directory


    what i do now ?

    thank you

  14. #14
    Oh dear, that looks fairly broken.

    My recommendations would be to...

    * Use google to see if anyone else has had that error

    * Check the machine to see if it's been hacked in some way

    * Check your history (and your brain's memory) to see/remember if you did anything weird that could have caused this. Did you install or change anything, even a while ago? If so, what, and did you do it properly?

    Finally, if none of that helps, ask at the CentOS forums (if you are using CentOS)
    or ask Redhat if you are running Redhat.

    and let us know how it goes

  15. #15
    Looks like you're running CentOS, a yum upgrade should get you the latest version, you can also grab the RPMs from a mirror and install them using rpm -Uvh. If you're on a managed server I'd just have your host update it.
    Linux/BSD Systems Administrator

  16. #16
    Yep, what he said.

    It shouldn't just do that on it's own though, so if you can dig around and find out what made it break, that would be worthwhile.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •