setup-apt.sh
This script updates the apt cache, performs upgrades, and removes unneeded packages.
Usage:
bash <(curl -sSL https://jrussell.io/setup-apt)
Full Script:
#!/bin/bash
# Designed for Ubuntu
# Update the apt cache
apt update
# Perform updates
apt -y upgrade
apt -y dist-upgrade
# Remove uneeded packages
apt -y autoremove