Skip to content

Instantly share code, notes, and snippets.

@Mausy5043
Last active April 22, 2017 05:58
Show Gist options
  • Save Mausy5043/de87cb068c2a300a1346d59472233fc1 to your computer and use it in GitHub Desktop.
Save Mausy5043/de87cb068c2a300a1346d59472233fc1 to your computer and use it in GitHub Desktop.
Update all software on a Debian based system; Raspberry Pi
#! /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
@Mausy5043
Copy link
Author

SYSUPDATE.SH

Bash script
Updates all software on a Debian based system

Requires sudo and uses apt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment