Skip to content

Instantly share code, notes, and snippets.

@mda590
Created February 4, 2020 21:46
Show Gist options
  • Save mda590/74ca7b373b6e384f74bfe06ae4afcceb to your computer and use it in GitHub Desktop.
Save mda590/74ca7b373b6e384f74bfe06ae4afcceb to your computer and use it in GitHub Desktop.
Simple script to upgrade an Ubuntu distribution and all of its packages
#!/bin/bash
# Fetches the list of available updates
sudo apt-get update -y
# Strictly upgrades the current packages
sudo apt-get upgrade -y
# Installs updates (new ones)
sudo apt-get dist-upgrade -y
# Clean Up
sudo apt-get autoremove -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment