Version 10
V10.0 changelog: tqdm functionality removed. Minor visual improvements.
Script to update your Ubuntu based system & to clear up afterwards.
Automatic elevation to sudo if not run as sudo in first instance.
Progress of tasks is printed to Terminal with clear breaks between functions.
Version 9 introduced an option to update the Snap Store which is useful in instances when the Snap Store cannot be updated whilst it is open/running.
NIL
Place the update.py file in your home directory, open Terminal and use command,
$ python3 update.py
The script checks for admin privillages, if none, elevates to sudo and then executes the following commands in sucession...
$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo apt-get dist-upgrade -y
$ sudo apt autoremove -y
$ sudo snap refresh
If the Snap Store is to be updated, the following command will be executed...
$ sudo pkill snap-store && sudo snap refresh snap-store