nordvpn

How to check CentOS version command line

Check CentOS version

The CentOS Project is a community-driven free software effort focused on delivering a robust open source ecosystem. For users, we offer a consistent manageable platform that suits a wide variety of deployments. For open source communities, we offer a solid, predictable base to build upon, along with extensive resources to build, test, release, and maintain their code.

Source: centos.org

check CentOS version

Also Read: How to install postgres 9.6 on centos 7

Check CentOS Version

There are several ways to check the version of the CentOS. Just execute one the following command to check the version of the CentOS.

[root@host ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

[root@host ~]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)>/code>

You can see os-release for more info.

[root@host ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

You can also use hostnamectl to check the version of CentOS.

[root@host ~]# hostnamectl
Static hostname: host
Icon name: computer-vm
Chassis: vm
Machine ID: 2fe48a2ec49e49d9a13a5810554f3b24
Boot ID: 8071b8675b1848e3a55177541d269e93
Virtualization: xen
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.el7.x86_64
Architecture: x86-64

Read Also: How to install bucardo for postgres replication

Read Also: Upgrade centos 7.2 from centos 7.1

 

Leave a Reply

Your email address will not be published.


*



The reCAPTCHA verification period has expired. Please reload the page.

48-Hour Flash Sale! Courses from just $10.99