josh asked this 3 years 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 3 years ago

RPM query package centos-release 

# rpm -q centos-release


In the above case CentOS version is 7.4




anette 3 years ago

run this command

cat /etc/centos-release