New update script using apt rather than apt-get

My plan is to migrate everything to this syntax. This is the first one.

#!/bin/bash
echo "updateall v.1.3 for Raspian"
#Run this as a normal user. Your admin password will be asked for if required.
sudo apt update
sudo apt upgrade -y
sudo apt full-upgrade -y
sudo rpi-update
echo "The script has now finished running."

Leave a comment