Knowledge for the World

How to update your Raspberry Pi to the latest version of Raspbian

Make sure your Pi is fresh.

This short guide will teach you how to update or upgrade your Raspberry Pi to the latest version of Raspbian, the official Raspberry Pi operating system.

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.

Using RetroPie?

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

1

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.

2

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

Username: pi
Password: raspberry
3

sudo apt-get update

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

4

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.

5

When you're done, restart the Pi with the following command:

sudo reboot
6

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!