Open LukeShortCloud opened 1 week ago
Not just scripts, also people such as myself who were used to dnf whatprovides
. This may be obvious to the dnf gurus but for many people it costs time to figure this stuff out and find the "new" command you now need to remember.
Also there is a relevant semantic difference between the dnf [what]provides
and dnf repoquery [what]provide
commands: I for one often used dnf[3] whatprovides <some command>
to find the package providing an executable with just the command (executable name) instead of the whole path. This worked fine and continues to work now I realized I just need to omit the what
but some search results lead me to the repoquery
subcommands and those don't work and did not work (dnf 4) with the bare executable name.
[da@David-UB ~]$ dnf provides dnf-3
Updating and loading repositories:
Repositories loaded.
python3-dnf-4.21.1-2.fc41.noarch : Python 3 interface to DNF
Repo : @System
Matched From :
Filename : /usr/bin/dnf-3
python3-dnf-4.21.1-1.fc41.noarch : Python 3 interface to DNF
Repo : fedora
Matched From :
Filename : /usr/bin/dnf-3
python3-dnf-4.21.1-2.fc41.noarch : Python 3 interface to DNF
Repo : updates
Matched From :
Filename : /usr/bin/dnf-3
[da@David-UB ~]$ dnf repoquery whatprovides dnf-3
Updating and loading repositories:
Repositories loaded.
[da@David-UB ~]$ dnf repoquery provides dnf-3
Updating and loading repositories:
Repositories loaded.
[no further output]
[da@David-UB ~]$ dnf --version
dnf5 version 5.2.6.2
dnf5 plugin API version 2.0
libdnf5 version 5.2.6.2
libdnf5 plugin API version 2.0
Loaded dnf5 plugins:
name: builddep
version: 1.0.0
API version: 2.0
name: changelog
version: 1.0.0
API version: 2.0
name: config-manager
version: 0.1.0
API version: 2.0
name: copr
version: 0.1.0
API version: 2.0
name: needs_restarting
version: 1.0.0
API version: 2.0
name: repoclosure
version: 1.0.0
API version: 2.0
I don't mean to complain here, I'm happy to do some late testing as Fedora 41 user, but it would be great to have the UX improved for the users yet to migrate to DNF5. Anyway, thanks a lot for dnf 5 it is indeed blazing fast :rocket:
With DNF 4, it was possible to use both
dnf provides
anddnf whatprovides
. These should be aliases of each other. However, it does not appear to work with DNF 5. This potentially breaks some backwards compatibility with scripts.Version information: