The fedora-release
package contains only one config file /usr/lib/os-release
so removing it isn't that big deal. Unfortunately a lot of packages depend on it and these were automatically uninstalled too. Good news is that data in your /home
are untouched. You should still be able to backup them from LiveCD.
It might be possible to save the system either from the rescue mode or from the LiveCD. Try following this tutorial for resetting root password but instead of the step where you should run passwd
to reset root password, run dnf install fedora-release
. This might not bring all the removed dependencies back, so also install the Workstation group (assuming you are using Fedora Workstation) dnf groupinstall "Fedora Workstation"
.
It's is possible that DNF won't work, because the uninstalled packages contain some definitions like version number. Also it is possible that repositories configuration was removed. You might need to manually download fedora-release
and fedora-repos
packages from the mirrors (link for Fedora 32) and install them manually using rpm -i --no-deps <package>
in the chroot.
If this doesn't work, you can still simply reinstall Fedora. If you /home
on a separate partition or logical volume (which is default in Fedora), you can simply reuse existing /home
without formatting it during installation (see Fedora installation guide for details and don't forget to backup your data first).
I see a lot of potential issues with the manual recovery, the reinstallation is probably the easiest solution.