Bug 249883 - yum ignores entries in /etc/yum.conf
yum ignores entries in /etc/yum.conf
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
7
All Linux
low Severity low
: ---
: ---
Assigned To: Jeremy Katz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-27 12:44 EDT by Edgar
Modified: 2014-01-21 17:59 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-07-27 14:22:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Edgar 2007-07-27 12:44:02 EDT
Description of problem:I would like to do an normal yum update, my desire is to
hold this kernel-version (entry in yum.conf):exclude=2.6.21-1.3228.fc7; but yum
ignores this and like to erase my kernel and some other packages:Removing:
 kernel                  i686       2.6.21-1.3228.fc7  installed          45 M
 


Version-Release number of selected component (if applicable):F7/2.6.22.1-27.fc7
yum-3.2.1-1.fc7,yum-metadata-parser-1.1.0-2.fc7,yum-updatesd-3.2.1-1.fc7,
yum-utils-1.1.5-1.fc7 are installed.








How reproducible:


Steps to Reproduce:
1.yum update 
2.yum like to erase kernel (see above)
3.
  
Actual results:Could not drive a "yum update"


Expected results:Removing:
 kernel                  i686       2.6.21-1.3228.fc7  installed          45 M
 kernel-devel            i686       2.6.21-1.3228.fc7  installed          14 M
 kmod-nvidia-96xx        i686       1.0.9639-1.2.6.21_1.3228.fc7  installed    
    5.1 M



Additional info:
Comment 1 Seth Vidal 2007-07-27 13:25:31 EDT
Could you cut and paste your yum.conf with the exclude here?

thanks
Comment 2 Edgar 2007-07-27 13:58:50 EDT
(In reply to comment #1)
> Could you cut and paste your yum.conf with the exclude here?
> 
> thanks
> 
Of course, here we go:
[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=2.6.21-1.3228.fc7 

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


Comment 3 Seth Vidal 2007-07-27 14:22:50 EDT
yes - that's an invalid exclude. You just specified a version - nothing else.
That won't match anything

also - excludes only work on available packages, not on installed ones. It seems
like what you want to do here is to exclude kernel updates and or disable
installonlyn to make sure it doesn't remove your kernel.
Comment 4 Edgar 2007-07-27 14:49:29 EDT
(In reply to comment #3)
> yes - that's an invalid exclude. You just specified a version - nothing else.
> That won't match anything
> 
> also - excludes only work on available packages, not on installed ones. It seems
> like what you want to do here is to exclude kernel updates and or disable
> installonlyn to make sure it doesn't remove your kernel.
> 
yes, thats correct, but how can i solve it, to hold an installed kernelversion? 
Many thanks for your quick reply and well support! 
Comment 5 Seth Vidal 2007-07-27 15:01:08 EDT
if you update to yum 3.2.2 in updates-testing then just go into your yum.conf
and set:

installonly_limit=0

then it will add kernel pkgs and not remove the other ones.
Comment 6 Edgar 2007-07-27 15:24:38 EDT
(In reply to comment #5)
> if you update to yum 3.2.2 in updates-testing then just go into your yum.conf
> and set:
> 
> installonly_limit=0
> 
> then it will add kernel pkgs and not remove the other ones.
> 
Wow, great!!! Many thanks!

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