Dnf and dnf5 are removed after update

Yes it used dnf4.

well that’s handy…any other versions of dnf hanging out in there? I would hate to try to solve this with rpm…it would tell you things are already installed after they’ve been removed…or installed but only unpacked…I recently had an interrupted release upgrade and solved it by using tar to unpack a container image…but I don’t recommend that either…

Assuming you’re on Fedora >=41, dnf5 should be considered the primary tool, and dnf is an alias for dnf5.

dnf4 is still in use as a backend for PackageKit, which is involved notably in:

  • Operations using software stores (GNOME Software, KDE Discover, etc).
  • Installations from the “command not found” plugin which offers to install missing packages when you type a shell command that relies on a package you don’t have.