Keep your Linux system up-to-date with ease

How to update linux


As with all operating systems keeping packages up-to-date is always important to ensure you have the latest security patches as well as bug fixes for different software on your system.

This short post will share a quick and easy way to ensure your system is always up-to-date with minimal work on your part.

For most Linux distro’s its pretty easy to update your system, if your using Debian or its derivatives like Ubuntu fire up a terminal window and type the following:

sudo apt-get update

Automating Linux updates

Instead of having to type this command in every single time you can create a script or download one from here to run the command above as well as others to remove obsolete packages, update the kernel and other packages.

Additionally you can put the script into a cron job which will run automatically which will be covered in an upcoming post.


sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y


I understand this won’t suit everyone but if you want to always keep your system up-to-date then this script can help.

Image credits

Keep your Linux system up-to-date with ease
Article Name
Keep your Linux system up-to-date with ease
Keep your Linux system up-to-date easily.
Publisher Name
AGR Technology