mirror of
https://github.com/zebrajr/HomeLab.git
synced 2025-12-06 00:20:22 +01:00
13 lines
331 B
Bash
Executable File
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!"
|