I just upgraded a laptop with traditional Fedora from F39 to F40.
Lets say… atomic distro upgrades work worlds easier, one run, done. This took a few reboots and strange repititions.
Fedora KDE (unlike Kinoite) comes equipped with a ton of KDE apps so I debloated as many of them as possible. Future apps will be mostly installed as Flataks. This speeds up upgrades and reduces the chance for breakages.
sudo dnf remove kontact akregator kaddressbook dragon contactthemeeditor elisa kmag kmail kmoustool kgpg kmahjongg kmines kmouth konversation kolourpaint okular korganizer kpatience ktnef krdc korganizer kamoso qdbusviewer libreoffice* sieveeditor im-chooser vlc kwin-x11 sddm-x11 kate orca kamera zenity gwenview qemu-guest-agent spice-vdagent abrt-addon-xorg qt5-qtsensors pulseaudio-qt-qt5 qt5-qttranslations
sudo dnf autoremove
sudo dnf --refresh upgrade
Wow, that was a lot! Let’s install the Flatpaks instead:
flatpak install -y gwenview okular libreoffice haruna thunderbird kamoso
Now do the upgrade, following this guide
After the upgrade, just to be extra extra sure:
# sync all packages (how is this different from upgrade?)
sudo dnf --refresh distro-sync
# rebuild rpm configs
sudo dnf install rpmconf
sudo rpmconf -a
# remove packages from old release (should not be needed)
sudo dnf install remove-retired-packages
remove-retired-packages
# remove duplicates
sudo dnf remove --duplicates
# remove unneeded packages
sudo dnf autoremove
# remove packages with no repo
sudo dnf remove $(sudo dnf repoquery --extras --exclude=kernel,kernel-\*)
I thought Fedora KDE would remove the X11 stuff, but it didnt?
Note: many qt5 and even x11 packages need to be kept, as they are hard dependencies of the desktop or other components.