As well as wanting to regularly check for updates so any security vulnerabilities are patched, you should also check for updates before installing anything new as often applications rely on the system being up to date to be able to install correctly.

Updating all installed packages

sudo apt-get update
sudo apt-get upgrade

or

sudo apt-get update; sudo apt-get upgrade

Update Operating System Distribution

apt-get update will not perform an update of the operating system to the most recent distribution. If you need new features or support for new hardware then you may need to carry out a distribution upgrade:

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
sudo reboot

Automatic Updates, Upgrade, Remove unused, Remove old

This updates the packages, upgrades the packages, removes unused packages, then removes old versions of packages.

sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y

This kind of works, but we’ve found certain update messages will still open and halt the update process until you press a key, such as “press q to quit”, or “choose an option N=default”. We are still looking for a simple reliable way that can be used so that Raspbian can be triggered to self update without any user interaction and a keyboard being required

Comments

  1. Sneha Fatangare

    3 years ago

    Open the terminal on your Raspberry Pi.