To upgrade the operating system and software on the server, use the following commands:
Debian
- Update the indexes of the packages
apt-get update
- Update all installed packages
apt-get upgrade
Ubuntu
- Update the indexes of the packages
sudo apt-get update
- Update all installed packages
sudo apt-get upgrade
Centos
- Update all installed packages
yum update