VERSION OF LINUX SERVER

HOW TO CHECK REDHAT LINUX VERSION

Sometimes you will be in the need to check the version of Redhat installed.There are different ways by which you can check the version of Redhat the machine is running.

Linux Standard Base Release

lsb_release is a command which is used to print certain lsb and Distribution information.

First, We need to install redhat-lsb-core package:

#yum install redhat-lsb-release -y

Once installed We can check the version using below command:

#lsb_release -a

 

 

 

 

From the above output, We can see that We are running Redhat with 7.4 version

System Release

Also, We can get the system version using the below command:

#rpm -qa |grep redhat-release

 

 

 

Release Files

Alternatively, We can find the Linux version from the below files.

#cat /etc/system-release

#cat /etc/redhat-release

#cat /etc/os-release

Output

 

 

 

 

 

 

 

 

 

 

 

That’s All.Thanks for reading this article.