"
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:
sudo reboot
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:
sudo rpi-update
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.
sudo reboot
"
No comments:
Post a Comment