How to upgrade to Fedora Silverblue 42 and roll back if needed

How to upgrade to Fedora Silverblue 42 and roll back if needed

Home » News » How to upgrade to Fedora Silverblue 42 and roll back if needed
Table of Contents

Virtually precisely one yr in the past, I wrote an editorial pushing readers to obtain Fedora Silverblue 40 as an alternative of Ubuntu 24.04 LTS. Each have been being launched in April 2024, however Fedora Silverblue has a more recent atomic structure, which makes the working system extra resilient and supplies you with instruments to roll again updates safely if wanted.

On this information, I’ll present you learn how to improve Fedora Silverblue 41 to the newly launched Fedora Silverblue 42 utilizing the command line, together with the command to roll again if wanted. Earlier than everybody says that is proof that Linux is just too tough, you even have the choice of upgrading by way of the Updates tab in GNOME Software program.

Improve graphically if you need by way of GNOME Software program’s Replace tab

Upgrading by way of the Terminal

To get began upgrading by way of the Terminal, you will need to see if model 42 is obtainable by operating this command:

  • ostree distant refs fedora

Within the output, it’s best to see:

  • fedora:fedora/42/x86_64/silverblue

At this level, assuming your system is operating effectively, it would be best to pin it to the GRUB menu so you possibly can simply boot into your present model do you have to run into issues with model 42. Use the next command to pin it to GRUB:

  • sudo ostree admin pin 0

Later, if you wish to unpin it, simply kind:

  • sudo ostree admin pin --unpin 2

Now it is time to rebase to model 42. Assuming you noticed model 42 within the output earlier, you possibly can improve with the next command:

  • rpm-ostree rebase fedora:fedora/42/x86_64/silverblue

Rolling again

When that has been accomplished, you possibly can reboot your system and begin utilizing Fedora Silverblue 42. At this juncture, most individuals should not have any issues and might proceed utilizing the model new Fedora Silverblue 42.

Nevertheless, should you do run into an issue, you possibly can roll again your system. Simply reboot the machine and hold tapping Escape to deliver up the GRUB menu and select besides into Fedora Silverblue 41, which you pinned earlier.

When that has booted up, crack open the Terminal and kind:

  • rpm-ostree rollback

This may eliminate Fedora Silverblue 42, and you will at all times boot into model 41. You may proceed to make use of Fedora Silverblue 41 till one month after the discharge of model 43.

author avatar
roosho Senior Engineer (Technical Services)
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog. 
share this article.

Enjoying my articles?

Sign up to get new content delivered straight to your inbox.

Please enable JavaScript in your browser to complete this form.
Name