Dnf disappeared afrer running dnfdragora

Ttitle says it all. I am running F41 on a laptop and was using dnfdragora to remove a package (fmt) that was installed for i686 instead of x64, and after a few hours waiting I decided to reboot (dnf dragora seemed to be working but CPU load was almost zero) and after that both dnf and dragora are completely gone
When typing ‘dnf’ in the command line, the answer is
bash: dnf: command not found…
Packages providing this file are:
‘dnf5’
‘dnf’
which sounds nice but is not really helpful

any assistence would be appreciated

Please check if dnf5 works. We changed the version of dnf and dnf it selves is just a simlink to the binary of dnf5.

You can also check if whereis dnf or whereis dnf5 shows you the path to the binary, sim-link.

ls -ahlt /usr/bin/dnf
lrwxrwxrwx. 1 root root 4 abr 23 21:00 /usr/bin/dnf -> dnf5

whereis dnf results in “/etc/dnf”
dnf5 is not found

You have to download the rpm5 package and install it with alternative programs like rpm or the software app if you are on Gnome.

You find the packages here:

1 Like

an@fedora:/usr/share/dnf5$ whereis dnf5
dnf5: /usr/share/dnf5
jan@fedora:/usr/share/dnf5$ ls -l /usr/share/dnf5
total 0

drwxr-xr-x. 1 root root 122 Mar 4 16:12 libdnf.conf.d

an@fedora:/usr/share/dnf5$ ls -l /usr/share/dnf5/libdnf.conf.d/
total 12
-rw-r–r–. 1 root root 61 Feb 25 01:00 20-fedora-defaults.conf
-rw-r–r–. 1 root root 34 Dec 27 01:00 protect-setup.conf
-rw-r–r–. 1 root root 50 Jan 8 01:00 protect-systemd.conf

Thanks, I think it all works again. I now understand what happened, removing fmt package was not the wisest decision to take
since dnf depends on it

Again thanks for the quick answers and the help

1 Like

Yes it looks like:

sudo dnf remove fmt
Failed to resolve the transaction:
Problem: installed package dnf5-5.2.13.1-1.fc42.x86_64 requires libfmt.so.11()(64bit), but none of the providers can be installed
  - conflicting requests
  - problem with installed package

dnf informed me that there is a problem to remove. You might use dnfdragora-updater, to get informed for updates and then use dnf to execute the update. For me it looks like a saver option.

Can I mark my answer above, how to reinstall dnf5, as solution?

Yes, it helped me
best
jan