Let’s talk a about how to update Raspberry Pi. If you’ve never updated your little computer , it’s time to try it out!
Released in September 2019, Raspbian Buster is based on Debian Buster and has been updated several times. It pre-installed Python, Scratch, Sonic Pi, Java and other programming tools.
Raspbian itself comes with a set of tools, from the Chromium browser to several useful software applications and utilities. There is also Claws Mail, the LibreOffice package, not to mention Minecraft PE!
The latest versions of Raspbian have been improved with a wizard along with a recommended software tool. Display settings have also been added, including Pixel Doubling for UHD displays. There is also support for network boot over Ethernet.
(btw, if you haven’t seen this Raspberry Pi video lessons for beginners, I highly recommend to check it)
The easiest way to update Raspbian is in Terminal. Do it via the desktop menu or by pressing Ctrl + Alt + T (I assume you have a typical keyboard)
Start by updating the list of repository packages:
sudo apt update
When this is done, run the update command:
sudo apt dist-upgrade
Follow any instructions and wait for the Pi update. When you’re done, type in:
sudo apt clean
This will delete unnecessary files that were uploaded during the update. Finish by restarting:
When your Raspberry Pi is restarted, you will use the latest version of Raspbian.
Upgrade Raspbian to the latest version
As already mentioned, Raspbian is based on Debian and follows the naming conventions of the parent distribution.
To upgrade Raspbian Stretch to Raspbian Buster, start with updates and upgrades to the latest packages.
sudo apt update sudo apt dist-upgrade -y
Then you need to update the firmware:
Updating to Raspbian Buster means switching repositories. This can be easily done in the terminal by editing the sources:
sudo nano /etc/apt/sources.list
Use the arrow keys to view the list until you find it
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
Change this line by replacing “stretch” with “buster”:
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
Press Ctrl + X to save and exit, then delete a large change log file:
sudo apt-get remove apt-listchanges
This will save time when updating the operating system.
After updating the sources, you can start a full package update:
sudo apt update sudo apt dist-upgrade
It will take some time, so be patient. When you’re done, use
sudo apt autoremove -y
give up old packages with changed dependencies, then
sudo apt autoclean
This clears the packet cache, removing data that is no longer available for download and saving space on your Raspberry Pi.
To complete the upgrade from Raspbian Stretch to Raspbian Buster, restart your computer.
That’s all, folks! You also may be interested on my other story about RPi: