josh asked this 1 year ago

How to check CentOS version

How can i check the version of CentOS that is installed on a machine from command line?


Best Answer by gareth
2 likes

RPM query package centos-release 

# rpm -q centos-release

centos-release-7-4.1708.el7.centos.x86_64

In the above case CentOS version is 7.4

 

 

 

anette 10 months ago

run this command

cat /etc/centos-release