How to update the Linux server?
As an administrator of a server, it is advisable to update it regularly in order to keep the operating system itself and additionally installed packages up to date. Updating your server is essential, especially when it comes to closing security gaps.
Below you will find out how to perform an update using PuTTY. To do this, you need the PuTTY program, the IP address of your server, and the root password of your server.
The further steps to carry out an update depending on the Linux distribution used:
Debian and Ubuntu
Debian and Ubuntu
The easiest way to update a Debian or Ubuntu system is to use the APT package manager. You can see the available packages with the command:
sudo apt-get update && Sudo apt-get upgrade
update directly. The first command updates the list of available packages and the second command installs all available package updates.
If you only want to update a single package, you can also use the command:
sudo apt-get install [package name]
use. Replace the [package name] placeholder with the name of the package you want to install, eg apt-get install OpenSSL to install OpenSSL.
If you want to remove a single package, use the command:
sudo apt-get remove [package name]
If you would like to update your system automatically on a regular basis, you can set this up with the cron-apt package. Further information can be found here, for example, https://wiki.ubuntuusers.de/cron-apt/
You can update the entire system with the command:
sudo yum update
Cent-OS also offers you the possibility to update individual packages, for this use the command:
sudo yum install [package name]
Replace the placeholder [package name] with the name of the package you want to install, eg yum install OpenSSL to install OpenSSL.
To remove a single package, you have the command:
sudo yum remove [package name]