Titon

Forum Admin
Staff member
Administration
Joined
Mar 20, 2022
Messages
16
Points
3

Ubuntu Linux

Introduction​

It is a best practice to update your server on a regular schedule for security and stability. Use this guide to keep your Ubuntu server updated.

Supported Versions​

This guide applies to:

  • Ubuntu 20.04 LTS
  • Ubuntu 19.10
  • Ubuntu 18.04 LTS
  • Ubuntu 16.04 LTS

Make a Backup​

Always make a backup before updating your system.

1. Update the Package Lists​

This command updates the package lists from the enabled repositories.

$ sudo apt update

2. List the Upgradable Packages​

This step is optional. To view the upgradable packages before performing the upgrade, use the apt list command.

$ sudo apt list --upgradable

3. Upgrade Packages​

This command will upgrade all the upgradeable packages.

$ sudo apt upgrade

4. Restart the Server​

$ sudo reboot

One Line Upgrade​

If you want to accept all the defaults and perform the upgrade without intervention, use this command:

$ sudo apt update && sudo apt upgrade -y

Optional - Autoremove​

Use apt to remove old packages and dependencies automatically.

$ sudo apt autoremove

Conclusion​

Periodic updates keep your server secure and stable. Make sure you have a snapshot or backup strategy in place before updating.

 
Last edited:

Admin

Forum Admin
Staff member
Administration
Joined
Feb 19, 2022
Messages
29
Points
3
Website
aponweb.com

View attachment 60

Introduction​

It is a best practice to update your server on a regular schedule for security and stability. Use this guide to keep your Ubuntu server updated.

Supported Versions​

This guide applies to:

  • Ubuntu 20.04 LTS
  • Ubuntu 19.10
  • Ubuntu 18.04 LTS
  • Ubuntu 16.04 LTS

Make a Backup​

Always make a backup before updating your system.

1. Update the Package Lists​

This command updates the package lists from the enabled repositories.

$ sudo apt update

2. List the Upgradable Packages​

This step is optional. To view the upgradable packages before performing the upgrade, use the apt list command.

$ sudo apt list --upgradable

3. Upgrade Packages​

This command will upgrade all the upgradeable packages.

$ sudo apt upgrade

4. Restart the Server​

$ sudo reboot

One Line Upgrade​

If you want to accept all the defaults and perform the upgrade without intervention, use this command:

$ sudo apt update && sudo apt upgrade -y

Optional - Autoremove​

Use apt to remove old packages and dependencies automatically.

$ sudo apt autoremove

Conclusion​

Periodic updates keep your server secure and stable. Make sure you have a snapshot or backup strategy in place before updating.

thanks, bro
 
Threads

51

Messages

62

Members

69

Latest member

delipatlatan