System update Bash script

When browsing my server I came across an old script of mine. It is called sysup and it simply updates your system with one command.

This script simply executes apt-get update and apt-get upgrade. Just copy the script in a file called sysup, move the file to /usr/bin/ and execute it with sudo sysup.

pluma sysup
[paste the script and save it]
sudo mv sysup /usr/bin/
sudo chmod +x /usr/bin/sysup
sudo sysup

I don't know if anyone wants it, but I thought let's share it anyways :smile:

EDIT: I've blurred the title bar as it shows the ip-addres of my Digital Ocean droplet :wink:

sysup bash script

1 Like

Not to be picky, but you can just edit your .bashrc file and add these to it.

# Preform regular & Dist-Updates via term
alias Update='sudo apt-get update && sudo apt-get upgrade'
alias DUpdate='sudo apt-get update && sudo apt-get dist-upgrade'

Then all you need to do is open mate-terminal and type Update for regular updates, or DUpdate for those pesky Dist-Updates. :wink:

You are right. As I said, it is an old script. I wanted to surpress the output and have a nice β€˜tumbler’.