Skip to content
Alexander Holbreich
Field Notes

Upgrading Fedora Linux

(updated )

How to upgrade Fedora Linux

General Reminders

Fedora (Desktop) distro upgrade steps

Now use the desired (latest) Fedora release version:

sudo dnf --refresh upgrade
sudo dnf system-upgrade download --releasever=42

Once finished, your system is ready for rebooting

sudo dnf5 offline reboot
# former
#sudo dnf system-upgrade reboot

You’re done!

Third-party kernel modules

If you use a third-party kernel module (e.g. Nvidia), it won’t be rebuilt during a system upgrade to a newer Fedora version! That means your kernel module might not work directly after the system upgrade. In the case of Nvidia, that will fall back to the default graphical driver, or just fail to boot to a graphical environment at all.

Theoretically, this command should help to rebuild all modules

sudo depmod -a

However, I faced a situation where a needed module was lost (not installed anymore). Install nvidia module(if needed):

sudo dnf install akmod-nvidia xorg-x11-drv-nvidia

Update system configuration files

sudo dnf install rpmconf
sudo rpmconf -a

Cleanup

Very much optionally, but you can run post-upgrade cleanup actions like:

sudo rpm --rebuilddb
#In case you have different sources of packages and yo would like to be in sync with your distro version. It my case downgrading of packages.
sudo dnf distro-sync --setopt=deltarpm=0
#Check for and remove not not used user installed (dependency-) packages
dnf list autoremove
sudo dnf autoremove

Sometimes packages will be retired by distro upgrade and are not removed by previous actions. It’s recommended to run this:

sudo dnf install remove-retired-packages
remove-retired-packages
sudo dnf repoquery --unsatisfied

The list should be empty. But if problematic packages are shown, those can be removed as they are not likely to work.

P.S. Consider to remove not used packages

Feature Highlights log

Fedora (Desktop) 43 - Future

Target Date: Tue 2025-11-11

Fedora (Desktop) 42 - Current

Fedora (Desktop) 41

Fedora (Desktop) 40

Fedora (Desktop) 39

Fedora 38

Fedora 37

Fedora 36

Fedora 35

Fedora 34

For older versions please check Upgrading Fedora Linux

Fedora distribution packages you might not need on a desktop

Fedora distribution brings a lot of preinstalled software. There is no harm in this in most cases and Fedora wants to shine with Apps and versatility to everyone! Good and right intentions! So you might not care about the following information and this is fine!

I can only give you my reasons to look into that:

  1. Better overview and control of what is going on in my system.
  2. Less potential conflicts in the package dependencies, sometimes I’ve seen on the distro upgrade
  3. Less (theoretical) security exposure. Less software installed and running reduces attack vectors
  4. Less load on my machine. Believe it or not, I feel like removing some of the software listed below brings me a second on the machine start ;)

Packages that I usually remove

Feel free to add packages from your list.

Packages that I regularly install


Share this post on: