Remove all kernel except 2.6.18-308.24.1.el5


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Remove all kernel except 2.6.18-308.24.1.el5
# 1  
Old 12-20-2012
Remove all kernel except 2.6.18-308.24.1.el5

Hello All,

I would like to remove all kernel in the system except 2.6.18-308.24.1.el5.
I was trying something like

Code:
rpm -qa|grep kernel|grep -v 2.6.18-308.24.1.el5|yum remove

it did not work. any help?

Thanks
# 2  
Old 12-20-2012
What's your system?
# 3  
Old 12-20-2012
I rather would advise to be very careful with system maintenance like this. As this very likely is a one off task, why not do it manually and check every step? List the kernels with rpm -qa, can't be that many, and select each single one to remove by hand.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Linux

Unload kernel module at boot time (Debian Wheezy 7.2, 3.2.0-4-686-pae kernel)

Hi everyone, I am trying to prevent the ehci_hcd kernel module to load at boot time. Here's what I've tried so far: 1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here): 2) Blacklisted the module by adding the following string to 3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies

2. Red Hat

Remove older kernel

I upgraded from 2.6.32 to the 2.6.37.4 kernel and i 'm now booted from the new kernel .. but the size of the root file system / is increased substantially due to /usr/src .. and the new kernel is working fyn for us .. so i would like to remove the older kernel .. i tried to remove the 2.6.32... (6 Replies)
Discussion started by: fugitive
6 Replies

3. Solaris

Which file is read by kernel to set its default system kernel parameters values?

Hi gurus Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies

4. IP Networking

Mac Filtering in REDHAT-el5

Need help to filter the MAC address for the specific ipaddress., HOW?? I had try the rule for: iptables -A FORWARD -i eth1 -s 192.168.129.57 -m mac --mac-source 00:02:6F:48:8A:85 -j ACCEPT But Not working now and if you have any alternate solution Help us.:confused::confused: (1 Reply)
Discussion started by: thakshina
1 Replies

5. SuSE

max number of slabs per kernel module (kernel 2.6.17, suse)

Hi All, Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff. Cheers, Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies
Login or Register to Ask a Question