Categories
CentOS 5.2 Tutorials CentOS 5.3 Tutorials CentOS 5.4 Tutorials CentOS 5.5 Tutorials CentOS 5.6 Tutorials CentOS 6.0 Tutorials

How to check your CentOS version

Most Red Hat-based distributions, like CentOS, should have a file called redhat-release which will contain the CentOS version.

# cat /etc/redhat-release
CentOS release 5.5 (Final)

or

# rpm -q centos-release
centos-release-5-5.el5.centos.1

and finally

# lsb_release -i
Distributor ID: CentOS
# lsb_release -r
Release: 5.5
# lsb_release -d
Description: CentOS release 5.5 (Final) 

By George

Technical Samurai specializing in open source IT Automation and Cloud Infrastructure.