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

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published.