Bug 158148 - exclude doesn't
exclude doesn't
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-19 01:17 EDT by Gregory Maxwell
Modified: 2014-01-21 17:52 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-19 01:20:38 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 Gregory Maxwell 2005-05-19 01:17:28 EDT
Description of problem:

Yum is configured to exclude kernel updates and several other RPMS on some of my
FC3 systems because I am using LVM on DMCrypt and require a custom ramdisk to
boot.  Yum upgrade of the kernel without supervision makes my systems unbootable.

The exclusion normally works, but if another package appears in updates that I
am not excluding which contains a claimed dependency on a newer kernel, the
kernel gets picked up to satisfy the dependency. 

Version-Release number of selected component (if applicable):

yum-2.2.0-0.fc3

How reproducible:

It happens every time something depends on a newer kernel.

Steps to Reproduce:
1.set yum to exclude=kernel*
2.run regular updates until something depends on a newer kernel.
3.recieve new kernel inspite of configuration 
  
Actual results:

New kernel is installed

Expected results:

New kernel is not installed, or possibly yum update fails due to dependencies
that can not be met.

Additional info:

#/etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
keepalive=1
gpgcheck=1
exclude=kernel*
exclude=mkinitrd-*
exclude=initscripts-*
exclude=cryptsetup*
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

I would be glad to perform whatever tests are needed.
Comment 1 Seth Vidal 2005-05-19 01:20:38 EDT
You cannot have multiple exclude lines in a single section.

they overwrite each other, they do not append.

the above should be written as:
exclude=kernel* mkinitrd* initscripts* cryptsetup*


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