Description of problem: yum --exclude kernel remove kernel Yum is trying to remove kernel but kernel should be excluded Version-Release number of selected component (if applicable): yum-3.2.8-9.el5, all How reproducible: always Steps to Reproduce: 1. yum --exlude kernel remove kernel #yum is trying remove kernel but it is in exclude part Actual results: remove package which is in --exclude <package> Expected results: not remove package in --exclude part, or write message that it isn't supported Additional info: yum --exclude kernel update kernel --- works yum --exclude kernel install kernel --- works yum --exclude kernel remove kernel --- doesn't
yum remove aide --exclude=aide Loading "protect-packages" plugin Loading "skip-broken" plugin Loading "list-data" plugin Loading "security" plugin Loading "rhnplugin" plugin Loading "aliases" plugin Loading "kmod" plugin Loading "basearchonly" plugin Loading "downloadonly" plugin Loading "changelog" plugin Loading "protectbase" plugin Loading "filter-data" plugin Setting up Remove Process rhel-i386-server-5 100% |=========================| 1.4 kB 00:00 Excluding Packages in global exclude list Finished 0 packages excluded due to repository protections Resolving Dependencies --> Running transaction check ---> Package aide.i386 0:0.12-7 set to be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Removing: aide i386 0.12-7 installed 263 k Transaction Summary ============================================================================= Install 0 Package(s) Update 0 Package(s) Remove 1 Package(s) Is this ok [y/N]:
Yeh, there are other cases where are excludes are not optimal. However I doubt we'll ever process excludes on the rpmdb side, it just doesn't make sense ... for instance what happens if you have pkg-X installed which conflicts with pkg-Y ... doing yum --exclude=pkg-X install pkg-Y would be a really bad idea to try and do (although rpm would stop us). Excludes really means "ignore this pkg from the repos." What do you want the above thing to do? What is the usecase?
If --exclude works with install or update I meant that it could work with remove and it didn't write any message. But OK, I know that there much important thing to do. bye