Linux

Keep your Linux system up-to-date with ease

How to update linux

Introduction

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.

Code

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

Conclusion

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

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

Hi and welcome to AGR Technology, my name is Alessio and I maintain this blog aiming to cover all things tech including Windows, macOS, Android and Linux. Thanks for stopping by and I hope you enjoy this website.