How to Upgrade Raspberry Pi OS to the Latest Version (2023)

1. Download the latest version of Raspberry Pi OS from the official website.

2. Insert the SD card into your computer and format it using the SD Card Formatter tool.

3. Download and install the Raspberry Pi Imager tool.

4. Open the Raspberry Pi Imager tool and select the latest version of Raspberry Pi OS from the list.

5. Select the SD card you want to use and click “Write”.

6. Once the write process is complete, remove the SD card and insert it into your Raspberry Pi.

7. Power up the Raspberry Pi and wait for it to boot up.

8. Once the Raspberry Pi is booted up, open the terminal and run the command “sudo apt-get update”.

9. Once the update is complete, run the command “sudo apt-get upgrade”.

10. Once the upgrade is complete, reboot the Raspberry Pi and you should now be running the latest version of Raspberry Pi OS.

Note: This guide has been updated in November 2021, to explain how to upgrade RPI OS Bullseye to Bookworm, but you can use the same tips to upgrade Buster to Bullseye, which is now officially the stable version. Keep in mind that the Raspberry Pi Foundation recommends installing Bullseye from scratch, instead of upgrading it as explained in this tutorial.

Raspberry Pi OS is based on Debian and follows its versions. The latest Raspberry Pi OS version available for download is currently “Bullseye”, based on Debian 10. If you’re behind and need to update your Raspberry Pi OS or want to try the next version (“Bookworm” e.g. Debian 12), you are in the right place.

Raspberry Pi OS uses package repositories to download new updates and upgrade the software to the latest version. You can use repositories to upgrade your software to the latest versions without losing any data. The URL is set in /etc/apt/sources.list.

In this tutorial, I’ll show you how to upgrade your system by editing the file and installing all of the new packages.

If you’re looking to quickly progress on Raspberry Pi, you can check out my e-book here. It’s a 30-day challenge where you learn one new thing every day until you become a Raspberry Pi expert. The first third of the book teaches you the basics, but the following chapters include projects you can try on your own.

Raspberry Pi OS versions

Before going further, you need to know which version you are currently using, and the new versions available.
As previously mentioned, Raspberry Pi OS is based on Debian and follows the same versions:

Debian version Code name Release date
Debian 8 Jessie September 2015
Debian 9 Stretch August 2017
Debian 10 Buster June 2019
Debian 11 Bullseye November 2021
Debian 12 Bookworm Not released yet, likely in 2023 ?
Debian and Raspberry Pi OS versions

Yes, all of the code names are based on Toy Story characters :).
You can check this guide to determine which version you currently have, and this introduction article to Raspberry Pi OS if you are not yet confident with it.

If you have a recent Raspberry Pi model, you also have to use a recent Raspberry Pi OS version. For example, Raspberry Pi 4 doesn’t boot on Stretch and Raspberry Pi 3B+ doesn’t work on Jessie.

During writing, the current stable version is Raspberry Pi OS Bullseye.
If you are using an old version, it’s a good idea to update it.

Raspberry Pi OS Bookworm is not yet considered stable, but the release date is coming soon and repositories for Raspberry Pi OS are already up and running. That’s why you can now update to test it (I don’t recommend it in production, or with essential services however).

Updating sources.list

As mentioned in the introduction, we use APT to update all of the packages on the system (either directly or with a graphical tool intermediate). APT checks for new updates available on the repositories and suggests installation.

The easiest way to upgrade your system to a new version is to change the repositories used by APT. But I also have an alternative to upgrading without commands if you are averse to it :).

Before going further, creating a backup of your SD card might be a good idea. If anything is broken after the installation, you’ll still have a way to easily come back to the current state of your system.

From a terminal

So, start by opening a terminal.
You can do this on Desktop, Raspberry Pi OS Lite or even via an SSH connection, it doesn’t matter.

Start by updating your system with the current repositories, you want the latest packages available for the current version before upgrading everything to the latest one:
sudo apt update
sudo apt upgrade -y

Reboot the Raspberry Pi if there were many updates:
sudo reboot

Then, we’ll change the repositories used to upgrade to the latest Raspberry Pi OS (beta) version:

  • Open the sources.list file with:
    sudo nano /etc/apt/sources.list
    If you are new to this editor, you can find my complete Nano guide with the commands and shortcuts here.
  • You’ll see one or more lines like this:
    deb http://deb.debian.org/debian bullseye main contrib non-free
  • Edit these lines and replace the current Debian code name with the one you want to install, for example:
    deb http://deb.debian.org/debian bookworm main contrib non-free
    If there are several lines, change all of them the same way (bookworm-security, bookworm-updates, etc.).

    It’s a good idea to update it step-by-step, one version at a time.
  • Save and exit this file (CTRL+O, CTRL+X).

The next step is to make a complete upgrade of your system:

  • Update the package lists:
    sudo apt update
  • Then upgrade everything with:
    sudo apt upgrade
  • Press “Y” to confirm the installation.
    It will start downloading all the packages now.
  • Press “q” to exit the apt-listchanges text if there is one.
  • Depending on the packages you have, you might have to answer a few questions during the installation (overwrite configuration, restart services, etc.).

    So, you can’t even leave your screen for too long, it won’t do everything automatically :-).

It will take a while to download and install all the new package (over 1000 in my case).
Once done, it’s a good idea to reboot your system to apply all changes directly:
sudo reboot

That’s it, I’m now up-to-date with Bookworm running on my Raspberry Pi 4:

Are you a bit lost in the Linux command line? Check this article first for the most important commands to remember, and a free downloadable cheat sheet so you can have the commands at your fingertips.

With a desktop tool

As promised, here is how to do this if you want to avoid the command line.
By default, I don’t think there is a way to do it easily.
The Add / Remove package tool can’t edit the sources file, you can also see the current repositories.

But you can install Synaptic to do it:

  • In the main menu, go to Preferences > Add/remove software.
  • Type “synaptic” in the search engine.
  • Install the package named Synaptic.
  • Once done, open it from the same location in the main menu.
  • In the top menu, you’ll find an entry “Repositories” under “Settings”:
  • Then in the new window, you can see and edit the repositories addresses:
  • Click on each enabled repository and replace the distribution name with the one you want to upgrade to.
    If your system is old, try to do it with incremental steps (don’t update from Jessie to Bullseye directly for example).
  • Click on “OK” to save your changes.

Once done, you can use Synaptic to update all the packages (use the icons in the top bar), or go back to the “Add / remove software” tool if you prefer.

Either way, your system is now up-to-date.
If you are trying Bookworm before the official release date, you might have a few bugs, but in general, Debian is pretty stable, even on a development release.

Want to chat with other Raspberry Pi enthusiasts? Join the community, share your current projects and ask for help directly in the forums.

FAQ

How to update the Raspberry Pi firmware?

The Raspberry Pi firmware is installed as a Debian package and is updated automatically with apt. If you use “sudo apt upgrade” regularly, your firmware is already up-to-date.

What is the latest Raspberry Pi OS version?

The current stable version of Raspberry Pi OS is Bullseye. The next release will be Bookworm which is available in testing, while Buster is still supported, as a legacy version (not all applications are yet compatible with Bullseye).

Additional Resources

Not sure where to start?
Understand everything about the Raspberry Pi, stop searching for help all the time, and finally enjoy completing your projects.
Watch the Raspberry Pi Bootcamp course now.

Master your Raspberry Pi in 30 days
Don’t want the basic stuff only? If you are looking for the best tips to become an expert on Raspberry Pi, this book is for you. Learn useful Linux skills and practice multiple projects with step-by-step guides.
Download the e-book.

VIP Community
If you just want to hang out with me and other Raspberry Pi fans, you can also join the community. I share exclusive tutorials and behind-the-scenes content there. Premium members can also visit the website without ads.
More details here.

Need help building something with Python?
Create, understand, and improve any Python script for your Raspberry Pi.
Learn the essentials step-by-step without losing time understanding useless concepts.
Get the e-book now.

You can also find all my recommendations for tools and hardware on this page.

How to Upgrade Raspberry Pi OS to the Latest Version (2023)

Are you looking to upgrade your Raspberry Pi OS to the latest version? Upgrading your Raspberry Pi OS is a great way to ensure that you have the latest features and security updates. In this guide, we’ll show you how to upgrade your Raspberry Pi OS to the latest version (2023).

Step 1: Update Your Raspberry Pi OS

The first step in upgrading your Raspberry Pi OS is to make sure that you have the latest version installed. To do this, open the Terminal window and type the following command:

sudo apt-get update

This command will update your Raspberry Pi OS to the latest version. Once the update is complete, you can move on to the next step.

Step 2: Download the Latest Version of Raspberry Pi OS

The next step is to download the latest version of Raspberry Pi OS. To do this, open the Terminal window and type the following command:

wget https://downloads.raspberrypi.org/raspios_full_2023_armhf.zip

This command will download the latest version of Raspberry Pi OS to your computer. Once the download is complete, you can move on to the next step.

Step 3: Install the Latest Version of Raspberry Pi OS

The final step is to install the latest version of Raspberry Pi OS. To do this, open the Terminal window and type the following command:

sudo unzip raspios_full_2023_armhf.zip -d /

This command will install the latest version of Raspberry Pi OS on your computer. Once the installation is complete, you can restart your Raspberry Pi and you will be running the latest version of Raspberry Pi OS.

Conclusion

Upgrading your Raspberry Pi OS to the latest version is a great way to ensure that you have the latest features and security updates. In this guide, we’ve shown you how to upgrade your Raspberry Pi OS to the latest version (2023). If you have any questions or comments, please feel free to leave them in the comments section below.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

Contact
San Vito Al Tagliamento 33078
Pordenone Italy
Item added to cart.
0 items - 0.00
Open chat
Scan the code
Hello 👋
Can we help you?