Releases - Versions - Numbers - Kernels
How to get the CentOS version number
There are several commands that should be executed in your server's terminal. You should access the server via ssh and execute the following:
Alternative commands to check the CentOS version:
The output should give you something similar to:
CentOS Linux release 7.4.1708 (Core)
PRETTY_NAME="CentOS Linux 7 (Core)"
Let me explain how to read the CentOS version numbers and what this number mean. You can see that you're using CentOS release 7 (this is the major version) and 4 (this is the minor version), third part 1708 is added for the 7th version only and indicates that the source code of this release is based on dates from August 2017.
Please keep in mind that you should always consider using the latest stable version of CentOS to have new features and cover security leaks.
How to get the CentOS kernel version
If you want to check which kernel is used on your server, this command will help you:
The output of the command should be similar to:
The output displays following keys:
- 3 – Kernel Version
- 10 – Major Revision
- 0 – Minor Revision
- 17.1.el7 – Fix/Revision Detail
uname command can also give the following information:
print all information, in the following order, except omit -p and -i if unknown:
print the kernel name
print the network node hostname
print the kernel release
print the kernel version
print the machine hardware name
print the processor type or "unknown"
print the hardware platform or "unknown"
print the operating system
--help display this help and exit
output version information and exit
Now you can easily find the CentOS version and its kernel version. Also, you are able to read the output and understand it. I would like to pay attention that you might have another version of CentOS and the version in my example can be not the latest and maybe even outdated. Please do not hesitate to contact us to check that you are running the latest version of the CentOS server.
Looking forward to your comments and questions!