4 Ways to Check CentOS Version in Linux Command Line
Apr 08, · The output will indicate which OS version you are running. 1. Before you can use lsb commands, you have to install the package first. Use the following command: sudo yum install redhat-lsb-core. 2. Type in your sudo password to authorize the installation and then press y and Enter to confirm. 3. View CentOS version information with the command: lsb_release -d. 05 July There are several ways on how to check what version of CentOS is running on your system. The simplest way to check for the CentOS version number is to execute the cat /etc/centos-release command. Identifying the accurate CentOS version may be required to help you or your support team to troubleshoot your CentOS system.
There are multiple vefsion that you can use to determine the CentOS version. This vrrsion shows you the three most effective and efficient methods that will work on any version of the CentOS operating system. The methods included in what is the heartbeat of god article for checking the CentOS system version are as follows:.
This is one of the simplest and easiest methods for getting the version details of the CentOS operating system. You can get the version details of the CentOS operating system simply by using the cat command:. Here, we have the output of the command, which shows that the release version number is 8.
The following shows you more information about the version number. Simply type the command given below:. To get the branch number of the CentOS operating system, the hostnamectl command can be used as given below. This command will print all the required details for the CentOS operating system:.
This post provided three useful methods for determining the version of the CentOS operating system. Knowing the version of the CentOS Operating system will ensure that you can install compatible software and troubleshoot any problems with the CentOS operating system. View all posts.
Checking the CentOS Version
Dec 10, · Once you browse to the CentOS wikipedia page, just search for the kernel version number and it should find something like this for you, confirming CentOS version to be 5. Use lsb_release command to confirm Lunux release. Linux Standard Base (LSB) is a joint project by major Linux vendors to standardise configuration and usage of Linux distros. The version details are placed inside the /etc/centos-release file. You can get the version details of the CentOS operating system simply by using the cat command: $ cat / etc / centos-release Here, we have the output of the command, which shows that the release version number is Checking the LSB version. Another way to check the centOS version is using the “lsb_release” command. The lsb_release command is provided by the package “redhat-lsb”. This package may not be present by default on the system and you may need to install it first.
One of the very first questions a Linux user asks is about confirming the release OS version in use. Knowing release helps with highlighting software dependencies and compatibilities, confirms availability of certain features in your OS and simplifies the process of system administration — certain releases have a preferred set of commands for day-to-day management.
With CentOS being a rather popular server grade Linux distro, I can see that many visitors of my blog look for the same guidance quite regularly: check CentOS version. This article introduces 5 of the most common ways to do just that.
As shown below, it will help you with confirming your Linux distro and its major release version CentOS and 7 in my case :. Among other things, hostnamectl provides easy access to the OS release information and Linux kernel version:. Next option you have is to use the RPM package manager to query a special package named centos-release. It will include the exact CentOS release version right in its full package name:.
Using the kernel version number — 3. Once you browse to the CentOS wikipedia page, just search for the kernel version number and it should find something like this for you, confirming CentOS version to be 7.
Confirm CentOS version with rpm Next option you have is to use the RPM package manager to query a special package named centos-release. Get in touch! Recent Articles 19 Apr Recent Tweets Tweets by Gleb Reys.