Last active
April 22, 2017 05:58
-
-
Save Mausy5043/de87cb068c2a300a1346d59472233fc1 to your computer and use it in GitHub Desktop.
Update all software on a Debian based system; Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo "..Updating" | |
echo "==============" | |
logger -p local1.info -t sysupdate Update | |
# sudo apt-get update | |
sudo apt update | |
echo | |
echo "..Listing" | |
echo "==============" | |
apt list --upgradable | |
echo | |
echo "..Cleaning" | |
echo "==============" | |
logger -p local1.info -t sysupdate AutoClean | |
sudo apt-get -y autoclean | |
echo | |
echo "..Removing" | |
echo "==============" | |
logger -p local1.info -t sysupdate AutoRemove | |
sudo apt-get -y autoremove | |
echo | |
echo "..Upgrading" | |
echo "==============" | |
logger -p local1.info -t sysupdate Upgrade | |
sudo apt -yuV upgrade | |
echo | |
echo | |
echo "System Update for $(hostname) is finished" | |
echo | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SYSUPDATE.SH
Bash script
Updates all software on a Debian based system
Requires
sudo
and usesapt