How to Update Server Packages in Linux

For Ubuntu/Debian based systems:

  • Step 1. Log in to your Ubuntu/Debian based server.

  • Step 2. Enter the following command.
sudo apt-get update && apt-get dist-upgrade
  • Step 3. Authenticate the command with your password if prompted.

  • Step 4. Confirm the updates by pressing Y if prompted.

For CentOS/RHEL based systems:

  • Step 1. Log in to your CentOS/RHEL based server.

  • Step 2. Enter the following command.
sudo nano yum update 
  • Step 3. Authenticate the command with your password if prompted.

  • Step 4. Confirm the updates by pressing Y if prompted.
Please rate this article to help us improve our Knowledge Base.

0 0