Simple, reliable bash script for regular (weekly) system update on Debian/Ubuntu/Mint-based Linux distributions.
Designed to be:
- fast and non-interactive
- safe for most home servers, workstations and virtual machines
- good showcase of basic DevOps / Linux administration skills
- Refreshes package index (
apt update) - Upgrades all installed packages without asking (
apt upgrade -y) - Performs distribution upgrade (
apt dist-upgrade -y) - Removes automatically installed packages that are no longer needed (
apt autoremove -y) - Cleans up old package cache (
apt autoclean) - Shows start & finish timestamps
- Waits for any key press before closing (convenient when running manually)
- OS family: Debian / Ubuntu / Linux Mint / derivatives
- Privileges: must be run as root (via
sudo) - Terminal with basic ANSI escape support