Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

how do I uninstall kernel?

Discussion in 'General Discussion' started by ktvktv, Jan 9, 2004.

  1. ktvktv

    ktvktv Member

    Joined:
    Sep 15, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    hi

    with rpm -qa | grep kernel

    I got

    kernel-2.4.18-27.7.x
    kernel-2.4.20-28.7
    kernel-bigmem-2.4.20-28.7
    kernel-smp-2.4.18-27.7.x
    kernel-2.4.20-28.7
    kernel-smp-2.4.20-28.7
    kernel-smp-2.4.20-28.7
    kernel-smp-2.4.20-28.7
    kernel-smp-2.4.20-28.7
    kernel-source-2.4.20-20.7
    kernel-2.4.20-28.7
    kernel-2.4.20-28.7


    is it possible to remove all of those 2.4.20* kernel?
    I've cleaned up grub.conf but those kernel still exists

    thanks
     
  2. vijaykiran

    vijaykiran Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    kernel
    login to your server using SSH
    first find out the kernel version you are using by:
    uname -r

    Dont delete the version you are using :D and give the following commands for the kernels you dont need..

    rpm -e kernel-2.4.18-27.7.x
    rpm -e kernel-2.4.20-28.7
    etc...

    Make sure what
     
  3. ktvktv

    ktvktv Member

    Joined:
    Sep 15, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    hi thanks for the help

    but rpm -e cant' uninstall those packages (because of multiple packages under the same name)

    you see, I have 4 2.4.20-28.7 and etc

    server will not let me uninstall it with "-e" only
    is there any command that can force the server to uninstall it?

    thanks
     
  4. vijaykiran

    vijaykiran Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    kernel
    try

    rpm -e --allmatches kernel-2.4.20-28.7

    If that doesn't work...
    you need to delete all the files manaully and then update the rpm db.

    Again : BE CAREFUL : DON'T UNINSTALL THE CURRENT ONE
     
  5. ktvktv

    ktvktv Member

    Joined:
    Sep 15, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    hi

    I've successfully removed several unused kernels

    but when it comes to smp-2.4.20-28.7 ,
    it said

    root@ns1 [~]# rpm -e --allmatches kernel-smp-2.4.20-28.7
    error: removing these packages would break dependencies:
    kernel >= 2.4.20 is needed by iptables-1.2.8-8.72.3


    is this dependencies important? is it possible to get rid of this
    I double checked uname -r and 2.4.20-28.7 is not the kernel I am using.


    can I just bypass this warning message and remove it?
    (right now I have 4 kernel-smp-2.4.20-28.7 and it's not in use.)

    thanks
     
    #5 ktvktv, Jan 9, 2004
    Last edited: Jan 9, 2004
  6. vijaykiran

    vijaykiran Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    kernel
    If your kernel is not in use then just give the command

    rpm -e --allmatches --nodeps kernel-smp-2.4.20-28.7

    Again : BE CAREFUL : DON'T UNINSTALL THE CURRENT ONE
     
  7. ktvktv

    ktvktv Member

    Joined:
    Sep 15, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    thanks for you help
    I finally removed all unused kernels

    I tried to install kernel again but it's panicking again
    maybe I need to compile it from source code but I am capable of doing that , sigh

    I just wonder if it's that important to upgrade kernel?
     
  8. vijaykiran

    vijaykiran Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    kernel
    :) Nice
    Always best to keep your kernel to the latest stable version..
     
  9. ktvktv

    ktvktv Member

    Joined:
    Sep 15, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    will hackers be able to break into my server or will they only be able to bring down my server?
     
  10. vijaykiran

    vijaykiran Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    kernel
    hmm..
    hacking not only depends on the kernel version...
    you need to look into many other issues like
    Firewalls
    Services running
    Port blocking etc...
     
  11. ktvktv

    ktvktv Member

    Joined:
    Sep 15, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    151
    sorry one more question

    I checked /boot

    root@ns1 [/boot]# dir
    ./ module-info@
    ../ module-info-2.4.18-27.7.x
    boot.0800 module-info-2.4.18-27.7.xsmp
    boot.b os2_d.b
    chain.b quota.user*
    config-2.4.18-27.7.x System.map@
    config-2.4.18-27.7.xsmp System.map-2.4.18-27.7.x
    grub/ System.map-2.4.18-27.7.xsmp
    initrd-2.4.18-27.7.x.img vmlinux-2.4.18-27.7.x*
    initrd-2.4.18-27.7.xsmp.img vmlinux-2.4.18-27.7.xsmp*
    kernel.h vmlinuz@
    lost+found/ vmlinuz-2.4.18-27.7.x
    map vmlinuz-2.4.18-27.7.xsmp
    message


    both vmlinux-2.4.18-27.7.x* and vmlinux-2.4.18-27.7.xsmp* have a * mark behind them. is this normal ?

    thanks
     
  12. vijaykiran

    vijaykiran Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    kernel
    Yes, its perfectly normal ...
    Use "ls" not "dir" :D
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice