Tested on Ubuntu 20.04

This script updates the apt cache, performs upgrades, and removes unneeded packages.

Usage:

bash <(curl -sSL https://jrussell.sh/setup-apt)

Raw Script Contents