PDA

View Full Version : How do I keep yum from removing older kernels?



shess01
14th February 2007, 08:25 PM
I have not had this trouble in the past (FC4, FC5) but now when I use yum (actually yumex) to update the kernel, it wants to remove the old kernel leaving me only 2 versions to choose from at boot. I read the man page on yum and yum.conf and from what I can tell the "installonlypkgs" parameter should take care of this, but it still wants to remove kernel and kernel-devel. What am I missing here?



[root@macbeth ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
installonlypkgs=kernel kernel-source kernel-headers kernel-devel kernel-smp kmod-nvidia kmod-ntfs
gpgcheck=1
plugins=1
metadata_expire=1800

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


Thanks in advance..

u-noneinc-s
14th February 2007, 08:30 PM
Go to /etc/yum/pluginconf.d and edit installonlyn.conf. Change tokeep = 2 to a higher number, or change enabled = 1 to 0

shess01
14th February 2007, 09:07 PM
"enabled" to zero... thank you. No MAN pages on those conf files as there are with the yum.conf. Going to google these later. I know this will cause the kernels to pile up, but with Fedora on a 6 month release cycle, it's not going to be a problem...