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


sudo apt-get update; sudo apt-get upgrade

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
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.