Keeping kernels

Rahul Sundaram sundaram at fedoraproject.org
Sat Mar 22 00:01:17 UTC 2008


david walcroft wrote:
> I'm trying to keep 4 kernels in  /boot/grub/grub.conf
> I have this in /etc/yum.conf
> 
> [main]
> cachedir=/var/cache/yum
> keepcache=0
> debuglevel=2
> logfile=/var/log/yum.log
> exactarch=1
> obsoletes=1
> gpgcheck=1
> plugins=1
> metadata_expire=1800
> exclude=
> installonly_kernel=4
> 
> # PUT YOUR REPOS HERE OR IN separate files named file.repo
> # in /etc/yum.repos.d
> 
> But it is not working,is there somewhere else that controls this
> or have I got 'installonly_kernel=4' wrong.

You have indeed got this wrong. You need installonly_limit and 
installonlypkgs should include the kernel. Check the man page

# man yum.conf

Rahul




More information about the fedora-list mailing list