Red Hat Bugzilla – Bug 996690
RFE: support flag to exclude packages during install
Last modified: 2014-12-11 23:07:16 EST
Description of problem:
We are unable to specify packages to exclude during installation of a package using mock with the "--install" parameter.
Version-Release number of selected component (if applicable):
It would be of great interest supporting the "-x" yum option that allows us to exclude packages whenever installing a package.
This is very important since otherwise we don't have a way to exclude packages from being installed through dependencies whenever issuing "mock -r ... --install xpto".
The install phase is handled by rpmbuild. Once it is implemented in rpmbuild, we can do that in mock. Waiting for bug 1165273.
Created attachment 958787 [details]
Patch to add -x/--exclude to mock command line
This patch adds the -x/--excludes command line arguments to mock, with the same meaning as on yum/dnf, meaning that the package or package-glob specified is to be excluded from installation in the chroot.
It allows a syntax like this:
mock -r fedora-20-x86_64 -x foo -x bar -x baz --rebuild example.src.rpm
Which would populate a chroot and exclude the packages foo, bar, and baz from installation in the chroot.
The intent is for this to work with both yum and dnf. Comments welcome.
mock-1.2.3-1.fc21 has been submitted as an update for Fedora 21.
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mock-1.2.3-1.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
mock-1.2.3-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.