How to Update Your Raspberry Pi

Make sure your Pi is fresh.
Zach Zach (236)
5 minutes

This short guide will teach you how to update or upgrade your Raspberry Pi to the latest version of Raspberry Pi OS (formerly known as Raspbian).

Updating your Pi is important to receive new features, security updates, and more! This will also update your Raspberry Pi's installed packages and dependencies, keeping things running smoothly and up to date. This method is recommended when you're running Raspberry Pi OS, the official operating system for the Pi, but it will also work on other versions of Linux you might be running (Ubuntu etc.)

Using RetroPie?

I wrote a separate guide to teach you how to update RetroPie.

Raspberry PiRaspberry Pi ×1

Howchoo is reader-supported. When you buy through links on our site, we may earn a small affiliate commission at no cost to you.

Before performing any updates or upgrades, I recommend you back up your Pi. This way, if anything goes wrong during the update process, you can revert to an exact snapshot of the previous Pi state.

Back up your Pi in Windows or in MacOS.

Connect to the Raspberry Pi via SSH from your normal computer using the default username and password:

Username: pi
Password: raspberry
sudo apt-get update

This command will retrieve a list of all the installed packages and their latest versions.

sudo apt-get upgrade --yes

This command installs the packages. The yes flag will tell the update process to continue rather than prompting you for each updated package or library.

Alternatively, you can also chain these commands together with an &&:

sudo apt-get update && sudo apt-get upgrade --yes

In this guide, I broke them out separately so that I could explain things more clearly.

Pat yourself on the back. That was an easy one! Be sure to favorite or bookmark this guide so that you can keep your Pi up to date in the future!

Tiny boards, big differences.
Ash Ash (331)
0

The Raspberry Pi Pico and Raspberries Pi Zero are miles apart when it comes to specs, form factor, and software support.