For Ubuntu/Debian based systems:
Step 1. Log in to your Ubuntu/Debian based server.
sudo apt-get update && apt-get dist-upgrade
Step 3. Authenticate the command with your password if prompted.
For CentOS/RHEL based systems:
Step 1. Log in to your CentOS/RHEL based server.
sudo nano yum update
Step 3. Authenticate the command with your password if prompted.