This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 443803 - Parameter tokeep=0 in yum installonlypkg doesn't work for kmod packages
Parameter tokeep=0 in yum installonlypkg doesn't work for kmod packages
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum (Show other bugs)
5.1
All Linux
low Severity low
: rc
: ---
Assigned To: James Antill
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-23 09:51 EDT by Berthold Cogel
Modified: 2008-04-23 10:17 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-04-23 10:17:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Berthold Cogel 2008-04-23 09:51:15 EDT
Description of problem:
If I set tokeep=5 in /etc/yum/pluginconf.d/installonlyn.conf, I can update a
kernel and a dependend kmod package without loosing the old ones. 
Parameter tokeep=0 in yum installonlypkg plugin aplies only to kernel packages,
not to kmod packages, so the old kmod package will be removed. 

Version-Release number of selected component (if applicable):
3.0.1-5.el5

How reproducible:
Each time

Steps to Reproduce:
1. set 'tokeep=5' and call 'yum update'

[root@dispatchdb2 service]# nano -w /etc/yum/pluginconf.d/installonlyn.conf 
[root@dispatchdb2 service]# cat /etc/yum/pluginconf.d/installonlyn.conf
[main]
enabled=1
# this sets the number of package versions which are kept
tokeep=5
[root@dispatchdb2 service]# yum update
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Loading "security" plugin
Setting up Update Process
Setting up repositories
epel                      100% |=========================| 1.1 kB    00:00     
openafs                   100% |=========================|  951 B    00:00     
rhel-i386-client-5        100% |=========================| 1.4 kB    00:00     
rhel-i386-client-workstat 100% |=========================| 1.2 kB    00:00     
rhel-i386-client-fastrack 100% |=========================| 1.2 kB    00:00     
rhel-i386-client-suppleme 100% |=========================| 1.4 kB    00:00     
rhn-tools-rhel-i386-clien 100% |=========================| 1.2 kB    00:00     
rhel-i386-client-workstat 100% |=========================| 1.4 kB    00:00     
Reading repository metadata in from local files
Skipping security plugin, no data
Resolving Dependencies
Skipping security plugin, no data
--> Populating transaction set with selected packages. Please wait.
---> Package kernel.i686 0:2.6.18-53.1.14.el5 set to be installed
---> Package kmod-openafs.i686 0:1.4.6-2.2.6.18_53.1.14.el5 set to be installed
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 kernel                  i686       2.6.18-53.1.14.el5  rhel-i386-client-5   13 M
 kmod-openafs            i686       1.4.6-2.2.6.18_53.1.14.el5  openafs        
  228 k

Transaction Summary
=============================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 13 M
Is this ok [y/N]: n
Exiting on user Command
Complete!

2. set 'tokeep=0' and call 'yum update'

[root@dispatchdb2 service]# nano -w /etc/yum/pluginconf.d/installonlyn.conf 
[root@dispatchdb2 service]# cat /etc/yum/pluginconf.d/installonlyn.conf
[main]
enabled=1
# this sets the number of package versions which are kept
tokeep=0
[root@dispatchdb2 service]# yum update
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Loading "security" plugin
Setting up Update Process
Setting up repositories
rhel-i386-client-5        100% |=========================| 1.4 kB    00:00     
rhel-i386-client-workstat 100% |=========================| 1.2 kB    00:00     
rhel-i386-client-fastrack 100% |=========================| 1.2 kB    00:00     
rhel-i386-client-suppleme 100% |=========================| 1.4 kB    00:00     
rhn-tools-rhel-i386-clien 100% |=========================| 1.2 kB    00:00     
rhel-i386-client-workstat 100% |=========================| 1.4 kB    00:00     
Reading repository metadata in from local files
Skipping security plugin, no data
Resolving Dependencies
Skipping security plugin, no data
--> Populating transaction set with selected packages. Please wait.
---> Package kernel.i686 0:2.6.18-53.1.14.el5 set to be installed
---> Package kmod-openafs.i686 0:1.4.6-2.2.6.18_53.1.14.el5 set to be installed
--> Running transaction check
--> Populating transaction set with selected packages. Please wait.
---> Package kmod-openafs.i686 0:1.4.6-2.2.6.18_53.el5 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 kernel                  i686       2.6.18-53.1.14.el5  rhel-i386-client-5   13 M
 kmod-openafs            i686       1.4.6-2.2.6.18_53.1.14.el5  openafs        
  228 k
Removing:
 kmod-openafs            i686       1.4.6-2.2.6.18_53.el5  installed         567 k

Transaction Summary
=============================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       1 Package(s)         

Total download size: 13 M
Is this ok [y/N]: n
Exiting on user Command
Complete!

3. Setting 'installonlypkgs=kernel kmod-openafs' in yum.conf doesn't work
  
Actual results:
kmod packages get removed 

Expected results:
kmod packages should be kept with the kernel

Additional info:
Comment 1 James Antill 2008-04-23 10:17:49 EDT
 As far as I can tell tokeep=0 doesn't mean "keep all" as installonly_limit=0
does. I'd suggest that you just set it to a really big number, and/or wait for
the 5.2 errata based on 3.2.8.

Note You need to log in before you can comment on or make changes to this bug.