Instruct yum to keep old kernels

Vivek J. Patankar vivek.patankar at gmail.com
Sat Sep 1 17:50:46 UTC 2007


Marcel Janssen wrote:
> When updating my system, yum wants to remove my working kernel.
> How can I make sure yum doesn't touch any kernel ever in an upgrade process 
> unless I want it ?

If the version of yum installed on your system is 3.2.2, add the 
following line to /etc/yum.conf
	installonly_limit = 0
This will disable removal of older versions. To retain a specific number 
of older packages, change 0 to the appropriate value.

If your yum version is older than 3.2.1, the below changes have to be 
made in /etc/yum/pluginconf.d/installonlyn.conf
	tokeep=n
where n is the number of previous versions to keep.


-- 
Regards,
विवेक ज. पाटणकर (Vivek J. Patankar)

Registered Linux User #374218
Fedora release 7 (Moonshine)
Linux 2.6.22.4-65.fc7 x86_64




More information about the fedora-list mailing list