How-to: Easily Automate your Linux System Updates
I love Linux. It is my favorite choice for an operating system.
As a software engineer, I prefer working with systems that are:
- Super customizable
- Not filled with bloatware garbage 🗑️
- Fast 🏎️
- Easy to use and learn
And Linux is one of those, and it has many offerings (Mint, Ubuntu, etc.)
Linux also has a GUI-based Software Center, which allows users to update different programs, or all of them at once. I personally find that one slow, and I’m not usually in the mood for going through updating each program one-by-one.
Other users may prefer the Software Center, if they want to update some but not all programs on their machine. To each their own.
So, I coded up the nifty little shell script below that:
✅ Updates all of my programs
✅ Updates my OS to the latest version
✅ Cleans up older versions
All I have to do in my terminal is enter update, and it runs.
Script when it starts running:
Script when it’s finished running: