Updating the RPi
Advanced Package Tool (APT) is a package management utility in Debian, Ubuntu, Raspbian, and their derivatives. APT is used to install, upgrade, and remove software. We will learn how to use it to update the OS and the software on the RPi board.
Run the following command:
sudo apt-get update
This command synchronizes the package list from the online source repository of software. Indexes of all the packages are refreshed. This updates all the repositories of the apps to all the latest update lists. This command must be executed before we execute the upgrade
command.
Then, run the following command:
sudo apt-get dist-upgrade –fix-missing -y
This downloads and installs all the packages. It also removes obsolete packages. Depending on the speed of the internet, it takes some time. Finally, update the firmware by running the following command:
sudo rpi-update
This will update the firmware. Following this, the RPi board will be up to date in all aspects.
Finally, we can run the following command to shut down the RPi:
sudo shutdown -h now
And the following command reboots it:
sudo reboot
This will update the firmware. Following this, the RPi board will be up to date in all aspects.