Skip to content

Instantly share code, notes, and snippets.

@utopianfool
Created August 28, 2020 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save utopianfool/ff40d9c51358817f21420935ef3a11b2 to your computer and use it in GitHub Desktop.
Save utopianfool/ff40d9c51358817f21420935ef3a11b2 to your computer and use it in GitHub Desktop.
Update linux servers - the basics

Update Servers

Log in to servers with admin@ then switch users "su" before running following commands:

Find what updates are available

apt-get update

Upgrade the found updates

Apt-get upgrade

If core files need upgrading run:

apt-get dist-upgrade

To clean unused files:

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