Description of problem: Fedora had **Move all to /usr** change/feature in Fedora 17. https://fedoraproject.org/wiki/Features/UsrMove However, grep still installs itself (and egrep, fgrep) to /bin/. This leads to packaging errors such as https://src.fedoraproject.org/rpms/redhat-rpm-config/c/9ac5353554ec44cfb2b9ef1cda10406971f78ac8?branch=master Version-Release number of selected component (if applicable): grep-3.1-3 How reproducible: Always. Steps to Reproduce: 1. dnf install /usr/bin/grep Actual results: No match for argument: /usr/bin/grep Error: Unable to find a match Expected results: Package grep-3.1-3.fc27.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete! Additional info: grep redefined _bindir to /bin in https://src.fedoraproject.org/rpms/grep/c/0efa5e9cebf61d2e2a185a5282e4f0b95bd25d09
Note: When this gets fixed, the Requires for /bin/grep in redhat-rpm-config needs to be replaced with /usr/bin/grep immediately, or it will will break the buildroot once again.
The grep package can simply add "Provides: /bin/grep" to avoid breaking anything.
We kept it mostly for backward compatibility. Let's try to fix it in Rawhide. I will add the explicit provide for backward compatibility.
The following packages require /bin/grep: Canna am-utils redhat-lsb-core resource-agents torque The following packages require /bin/egrep: nagios-plugins-log nagios-plugins-sensors redhat-lsb-core The following packages require /bin/fgrep: redhat-lsb-core
Thank you! $ rpm -qpl grep-3.1-4.fc28.x86_64.rpm | grep bin /usr/bin/egrep /usr/bin/fgrep /usr/bin/grep $ rpm -qp --provides grep-3.1-4.fc28.x86_64.rpm | grep bin /bin/egrep /bin/fgrep /bin/grep
Canna is orphaned https://src.fedoraproject.org/rpms/am-utils/pull-request/1 https://src.fedoraproject.org/rpms/redhat-lsb/pull-request/3 https://src.fedoraproject.org/rpms/resource-agents/pull-request/2 https://src.fedoraproject.org/rpms/torque/pull-request/2 I see no egrep mentioned in nagios-plugins.spec
(In reply to Miro Hrončok from comment #6) > Canna is orphaned > https://src.fedoraproject.org/rpms/am-utils/pull-request/1 > https://src.fedoraproject.org/rpms/redhat-lsb/pull-request/3 > https://src.fedoraproject.org/rpms/resource-agents/pull-request/2 > https://src.fedoraproject.org/rpms/torque/pull-request/2 Thanks > I see no egrep mentioned in nagios-plugins.spec It seems they silently fixed it in: https://src.fedoraproject.org/rpms/nagios-plugins/c/12c05af7b4828ecc028accf262b00fb8ba74e3f0
(In reply to Jaroslav Škarvada from comment #7) > (In reply to Miro Hrončok from comment #6) > > Canna is orphaned > > https://src.fedoraproject.org/rpms/am-utils/pull-request/1 > > https://src.fedoraproject.org/rpms/redhat-lsb/pull-request/3 > > https://src.fedoraproject.org/rpms/resource-agents/pull-request/2 > > https://src.fedoraproject.org/rpms/torque/pull-request/2 > > Thanks > > > I see no egrep mentioned in nagios-plugins.spec > > It seems they silently fixed it in: > https://src.fedoraproject.org/rpms/nagios-plugins/c/ > 12c05af7b4828ecc028accf262b00fb8ba74e3f0 Probably here is the first fix: https://src.fedoraproject.org/rpms/nagios-plugins/c/47131dde93200ccbac99cfb379f02a4ba4ec3df1 but it seems there isn't still the fixed version built in the f26 I did the query across.