How To Check CentOS Version

Check CentOS Version

In this tutorial we will show you how to check CentOS version from the command line. As a system administrator, the first question you should ask yourself after getting a new CentOS server to manage is what version of CentOS am I running? The version of the operating system in use on our server is important as it is critical that we have all the latest updates to ensure that the server is secure. There are a few ways to check your VPS hosting is using what version of CentOS. With commands below you can choose one of them to find out which CentOS version is running on your system.

Check CentOS Version

There are several ways on how to check what version of CentOS is running on your system. Below you can find multiple examples on how to determine CentOS version.

Hostnamectl command:

Another file that contains the centos version information is /etc/issue:

The rpm command can also be used to query for the centos version information:

Another alternative is to use lsb_release command:

The lsb_release command is not available on centos by default. It can be installed by installing the redhat lsb packages from the base repository:

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!