HomeLab/systems/xubuntuDaily/bash/010update.sh
2021-10-01 10:38:24 +02:00

13 lines
331 B
Bash
Executable File

echo ":: Updating"
start=`date +%s`
sudo apt update -y &> /dev/null
echo ":: Upgrading the following:"
sudo apt list --upgradable
sudo apt upgrade -y &> /dev/null
echo ":: Removing Old Packages"
sudo apt autoclean -y
sudo apt autoremove -y
end=`date +%s`
runtime=$((end-start))
echo ":: Total Update Time: ${runtime} seconds!"