Red Hat Bugzilla – Bug 1169165
let glob pattern describing package to match multiple packages
Last modified: 2015-02-20 03:32:35 EST
Description of problem:
When supplying the command-line argument '--exclude' or '-x' to dnf install, dnf displays an error message instead of installing the matching packages and excluding the specified packages.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open a root console
2. Type 'dnf install libreport-*.x86_64 -x *-devel'
dnf displays a "not installable" error message. See below for the pastebin of the exact output.
dnf should install every package that matches "libreport-*.x86_64" except those that match "*-devel"
The same command works as expected with yum.
Output of dnf: http://pastebin.com/m3i2HU4n
Output of yum: http://pastebin.com/vazFCv5G
Thanks for the report. DNF tries to select only one package that best matches the pattern. In DNF it works if you set multilib_policy to all: `dnf install libreport-*.x86_64 -x *-devel --setopt=multilib_policy=all`. We should change that to search them all. It should first get all package names and then choose right architecture for each. I will fix it.
Hi Jan, thanks for your answer! Let me know when I can take a look at your fix. :)
We should add new function to DNF - get_best_selectors, which would return list of selectors. The list will have more than one value only if package description pattern has `*` inside package name.
Michael, take a look, please.
*** Bug 1183439 has been marked as a duplicate of this bug. ***
*** Bug 1184529 has been marked as a duplicate of this bug. ***
dnf-plugins-core-0.1.5-1.fc21,hawkey-0.5.3-2.fc21,dnf-0.6.4-1.fc21 has been submitted as an update for Fedora 21.
Package hawkey-0.5.3-2.fc21, dnf-plugins-core-0.1.5-1.fc21, dnf-0.6.4-1.fc21:
* 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 hawkey-0.5.3-2.fc21 dnf-plugins-core-0.1.5-1.fc21 dnf-0.6.4-1.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
hawkey-0.5.3-2.fc21, dnf-plugins-core-0.1.5-1.fc21, dnf-0.6.4-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.