- Joined
- Dec 8, 2012
- Messages
- 773
- Points
- 63
There are a few ways to check your VPS hosting is using what version of CentOS. With commands below you can choose one of them to find out which CentOS version is running on your system. However, depending on your system not all codes may be applicable.
Using rpm command to to query for centos-release package to reveal CentOS version:
Here's mine
Use cat command to read their content in order to show CentOS version:
or
Using rpm command to to query for centos-release package to reveal CentOS version:
Code:
rpm --query centos-release
Code:
[root@server /]# rpm --query centos-release
centos-release-6-8.el6.centos.12.3.x86_64
Code:
cat /etc/centos-release
Code:
[root@server /]# cat /etc/centos-release
CentOS release 6.8 (Final)
Code:
[root@server /]# cat /etc/redhat-release
CentOS release 6.8 (Final)