How To Check Your CentOS Version.
In this tutorial, we’ll show several different commands on how to check what version of CentOS is installed on your system.
Check CentOS version from the Command Line.
The lsb_release command displays Linux Standard Base (LSB) information about your Linux distribution.
Your CentOS version will be shown on the Description line.
Alternative methods to check CentOS version
Check CentOS version using the rpm command.
You can use the rpm tool to display information about the centos-release package, which includes the CentOS version in its name:
Check CentOS version using the /etc/centos-release file
To find your CentOS version enter the following command:
Check your CentOS version using the /etc/os-release file
The /etc/os-release file is present on all systems running systemd and contains operating system identification data.
This method will only work if you have CentOS 7:
Check your CentOS version using the hostnamectl command
hostnamectl is a command that allows you to set the system hostname , but you can also use it to find your CentOS branch.
This method will work only if you have CentOS 7:
In this guide, we have shown you how to find the version of CentOS installed on your system.