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:
Could you cut and paste your yum.conf with the exclude here? thanks
(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
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.
(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!
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.
(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!