Skip to main content

Ubuntu Updates

To keep your Ubuntu system updated, you can use the following command:

sudo apt-get update && sudo apt-get upgrade -y

You can also use the apt-get dist-upgrade command. It similar to apt-get upgrade but it also installs and removes dependency packages and ensures critical packages are upgraded first.

danger

The apt-get dist-upgrade command should be tested in a non-production environment before being run on a production system.

To use the apt-get dist-upgrade command, you can run the following command:

sudo apt-get dist-upgrade -y

Rebooting

After some updates have been made you may need to reboot your server. To do that, run the following command:

sudo reboot