Skip to content

Instantly share code, notes, and snippets.

@Kautenja
Created March 17, 2019 17:29
Show Gist options
  • Save Kautenja/c8d0589c94441eaa4b0e683baf8bd643 to your computer and use it in GitHub Desktop.
Save Kautenja/c8d0589c94441eaa4b0e683baf8bd643 to your computer and use it in GitHub Desktop.
a script to upgrade packages on Debian systems one at a time
for package in $(apt list --upgradable | cut -d "/" -f1); do
sudo apt-get install --only-upgrade -y $package;
done;
@Kautenja
Copy link
Author

This script is useful if sudo apt-get upgrade fails for whatever reason.

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