Centos Linux fast update

From today’s server security training series, we will discuss the centos Linux update by the Linux update command.

Linux, unlike Windows, has faster and more secure updates due to being open source,

so updating Centos Linux regularly reduces the security risks to your server to a reasonable degree.

In the last session we discussed the Ubuntu update ,

if you use ubuntu distribution you can use that article as well.

If you have not yet installed Linux on your server,

you can also use the Linux installation tutorial we provided in previous sessions.

On Linux, programs work like this when you don’t need to install extra packages when you install a program. For example, when you install Photoshop on Windows you have to install numerous libraries with it, but not all Linux systems. Programs use the Linux Reference Library to run, which means that if you only update libraries, virtually all of your programs will be secure, and this is a great mechanism for Linux.

How to update centos Linux by the Linux update command

This tutorial is only applicable with the access of the server administrator, Users Root. To begin the Linux update process, simply download the putty software and log in to your server by entering server information including IP, usernames and passwords.

putty - Linux update command

Now run the Linux update command below in the ssh environment.

  yum update

By the above command,

Linux first compares the current versions of the software installed on the server with the latest version of the repository by referring to its repositories and,

if there is a new update, update to the latest version.

After checking the packages and preparing for the Linux update,

centos will receive a message asking you to update, starting with the y button,

the Linux update process will start and depending on how fast your server is downloading after a few minutes of upgrade Ends.

centos accept-update linux

If for any reason you get an error while updating Linux, simply run the following command,

it completely eliminates any errors that may have been created during past Linux updates.

  yum clean all

Well, almost done with the centos Linux update,

and we recommend that you reboot your server once to fix any changes to the Linux kernel if you don’t mind.

  reboot

By the above steps,

only packages will be updated on your server defined in the Linux repository and installed through the same repository in the past,

ie if you have a particular program or package manually or via a Linux source.

You must have the same installation procedure to upgrade them.

How helpful was the training for you?

Leave a Reply

Your email address will not be published. Required fields are marked *