View Full Version : How can I safely remove the old kernel?
xploder
30th April 2008, 09:19 PM
How can I safely remove the 2.6.25-0.234.rc9.git1.f9.i686 kernel?
The newer kernel works fine and I want to remove the old one without messing anything up.
Seve
30th April 2008, 09:50 PM
Hello:
It's a good idea to keep at least 2 kernels installed at any one time in case something goes wrong with the one.
That being said, you can remove the kernel with
yum remove kernel-2.6.25-0.234.rc9.git1.f9.i686
Seve
19bab79
30th April 2008, 09:59 PM
you can also use your add/remove software option and do a search for linux image or kernel. this will list all available kernels. there you can select the one you want for removal.
xploder
30th April 2008, 11:12 PM
Thanks for the responses and the advice!
stoat
30th April 2008, 11:15 PM
Hello everybody,
One other thing to mention along these lines is how to change how many kernels are retained by Fedora before it removes the oldest one. Edit the yum configuration file, /etc/yum.conf, and change the value of installonly_limit.
[root@localhost ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2But I second the notion of keeping at least one old kernel (the Fedora default) because someday and for some reason you will be glad an old kernel is still there after an update. Besides, the kernel and kernel-devel packages themselves are around 22 MB. That's probably just a fraction of what your Internet cache is right now.
xploder
30th April 2008, 11:32 PM
I was not able to remove the old kernel because it wanted to take other packages with it.
Jongi
13th July 2008, 10:58 PM
Hello:
It's a good idea to keep at least 2 kernels installed at any one time in case something goes wrong with the one.
That being said, you can remove the kernel with
yum remove kernel-2.6.25-0.234.rc9.git1.f9.i686
Seve
I've been looking for a solution to remove a kernel for so long. Thanks.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.