Linux script to run full update routine

0

Linux bash script to run a full update using apt command.

#!/bin/bash

# Update
echo "=================================="
echo "Update"
echo "=================================="
sudo apt-get update

# Upgrade
echo "=================================="
echo "Upgrade"
echo "=================================="
sudo apt-get upgrade

# Distribution Upgrade
echo "=================================="
echo "Distribution Upgrade"
echo "=================================="
sudo apt-get dist-upgrade

# Auto remove
echo "=================================="
echo "Auto Remove"
echo "=================================="
sudo apt-get autoremove
Share.

About Author

Christian Unnerstall

Christian Unnerstall, founder of devshooin.com, enjoys designing and building things that look nice and work well, whether it's websites or services within the interwebs. Have questions - feel free to reach out to him. Enjoy

Leave a Reply