My initial attempt to do this was taking ages. But then I googled and found this

I took the instructions from the above website and made it into something you could cut and paste in one go.


rpm -qa | sort > pkgs.txt
touch fedora-app-re-installer.sh
cat > fedora-app-re-installer.sh <<EOF
#!/bin/bash
pkgs="
EOF
cat pkgs.txt >> fedora-app-re-installer.sh
cat >>fedora-app-re-installer.sh <<EOF
"
dnf reinstall \$pkgs
EOF
chmod +x fedora-app-re-installer.sh
echo "Now run (as root) ./fedora-app-re-installer.sh"

All the above does is make a script, that includes the names of all the packages you have installed, and then the script sends the list to dnf to reinstall them all. Just copy and paste the above into a terminal windows (as whatever user) and then run, as root: “./fedora-app-re-installer.sh” after this lot: