Bug 249883 - yum ignores entries in /etc/yum.conf
Summary: yum ignores entries in /etc/yum.conf
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-07-27 16:44 UTC by Edgar
Modified: 2014-01-21 22:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-07-27 18:22:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Edgar 2007-07-27 16:44:02 UTC
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 17:25:31 UTC
Could you cut and paste your yum.conf with the exclude here?

thanks


Comment 2 Edgar 2007-07-27 17:58:50 UTC
(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 18:22:50 UTC
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 18:49:29 UTC
(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 19:01:08 UTC
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 19:24:38 UTC
(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.