Need to update your Raspberry Pi to the latest version of Raspbian, but can’t work out how to do it? Here are four ways to get the latest Raspbian on your own device right now!
Why You Need to Update Raspbian
Released in September 2019, Raspbian Buster is based on Debian Buster and has had several incremental updates. It has Python, Scratch, Sonic Pi, Java, and more programming tools preinstalled.
Raspbian itself comes with a bunch of bundled tools, from the Chromium browser to several useful programming-based applications and utilities. There’s also Claws Mail, the LibreOffice suite, and not to mention Minecraft PE!
Recent versions of Raspbian have been enhanced with a setup wizard, along with a recommended software tool. Display tweaks have also been added, including Pixel Doubling for UHD displays. There’s also support for network booting over Ethernet.
There are three ways to update Raspbian:
- Enter the Raspberry Pi update command in the terminal
- Run a complete upgrade from one version to another
- Flash a copy of the latest release
Below we’ll look at the options for each. The following steps work for all consumer versions of the Raspberry Pi, including the Pi Zero and Raspberry Pi 4.
Update Your Raspberry Pi With Raspbian
The simplest way to update Raspbian, is in the Terminal. Do this via the desktop menu, or by pressing Ctrl + Alt + T.
Begin by updating the repository package list:
sudo apt update
When this is done, run the upgrade command:
sudo apt dist-upgrade
Follow any prompts and wait for the Pi to be upgraded. When you’re done, type:
sudo apt clean
This will discard any unneeded files that have been downloaded as part of the upgrade. Finish by restarting:
When your Raspberry Pi has restarted, you’ll be using the latest version of Raspbian. Well done!
Update Raspbian to the Latest Version (Stretch to Buster)
As noted, Raspbian is based on Debian and follows the parent distro’s naming conventions.
To upgrade Raspbian Stretch to Raspbian Buster, start by updating and upgrading to the most recent packages.
sudo apt update sudo apt dist-upgrade -y
Next, the firmware should be updated with:
Upgrading to Raspbian Buster means switching repositories. This is easily done in the terminal by editing the sources:
sudo nano /etc/apt/sources.list
Use the arrow keys to browse through the list until you find
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
Change this line, replacing “stretch” with “buster”:
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
Press Ctrl+X to save and exit, then remove a large changelog file:
sudo apt-get remove apt-listchanges
This will save time when the operating system updates.
With the sources updated you can run a full package update and upgrade:
sudo apt update sudo apt dist-upgrade
This will take a while to complete, so be patient. When done, use
sudo apt autoremove -y
to discard old packages with changed dependencies, then
sudo apt autoclean
This clears the package cache, removing data no longer available for download, and saving space on your Raspberry Pi.
To complete the upgrade from Raspbian Stretch to Raspbian Buster, reboot.
How to Download and Install Raspbian to SD Card
While updating is simple enough, you might have had enough of the old version of Raspbian you were using. Perhaps it has been hanging, or the SD card has become corrupted, or you’ve bought a new SD card.
Either way, you need to install the most recent version of Raspbian.
Get started by downloading the Etcher SD card writing software from balena.io/etcher. Next, head to the Raspberry Pi website’s download page, and grab a copy of Raspbian or Raspbian Lite. These can be downloaded direct from the website, or as torrents.
Note that if you have a slow internet connection, Raspbian Lite is the better option. (If you want an even lighter distro, try DietPi .)
Be aware that this option will delete the contents of your SD card. Be sure to back up any vital data from within your existing Raspbian installation before proceeding.
After downloading, unzip the file to unpack the IMG disk image. You can then insert your SD card into your PC’s card reader and launch Etcher. With the SD card automatically detected, all you need to do is click Select image and browse to the IMG.
Click Flash to proceed and wait while the SD card is formatted and the Raspbian OS is installed. When you’re done, close Etcher, then safely eject the SD card.
Insert it in your Raspberry Pi, boot up and enjoy all the new features of Raspbian! Wondering what to do next? Check our list of the best Raspberry Pi projects !
How to Install Raspbian OS With NOOBS (Easier)
Getting to grips with image files and writing to microSD cards can be a bit challenging. Fortunately, there is an alternative that doesn’t require you to install additional software. Instead, you simply copy the installer to your SD card.
This is NOOBS (New Out Of the Box Software), designed to make installing operating systems on your Raspberry Pi easier. Better still, it supports installation of multiple OSs, potentially giving you a choice of:
- Ubuntu MATE
- RISC OS
- Windows 10 IoT Core
- Raspbian and Raspbian Lite
- …and many more
To get started, download NOOBS from the Raspberry Pi website. You have a choice of the offline version, or NOOBS Lite, which requires an internet connection.
Whichever you choose, once downloaded, you simply need to unzip the contents, and copy to a formatted SD card. Once this is done, safely remove the card, insert it in a powered-off Raspberry Pi, and power it up. A few moments later, you’ll see the NOOBS menu, where you can select Raspbian to be installed.
An alternative to NOOBS is BerryBoot. Both fulfil similar purposes—check our NOOBS vs. BerryBoot comparison to decide which is best for you.
You Can Even Install Raspbian to a USB Drive
Want to run the latest Raspbian Stretch from your USB drive instead of an SD card? This is possible if you own a Raspberry Pi 3 or later. These devices allow you to copy the operating system to a connected USB device. Perhaps a USB flash device, or a HDD, or even an SSD.
While this will require the latest version of Raspbian, you don’t necessarily need to start with a fresh install. Instead, upgrade Raspbian in the terminal as explained above, then follow our tutorial: booting a Raspberry Pi 3 from USB .
Ways to Update Raspbian on Your Raspberry Pi
In total, you have four ways to update your Raspberry Pi with a fresh version of Raspbian:
- Run an update within the terminal
- Do a fresh install onto SD card
- For the easy option, use NOOBS to install Raspbian
- Don’t want to rely on an SD card? Boot from USB!
It really is as simple, or as advanced, as you need it to be. Once you’ve upgraded Raspbian, you’ll be ready to proceed with your Raspberry Pi experience.
It’s vital that you keep your Raspbian installation up to date . Whether this means upgrading in the terminal, or creating a fresh installation each time, is up to you.
Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.