00:00:00
03 May

3 Methods To Check What CentOS Version You Are Running (5, 6 or 7)

Oliver Krautscheid Jul 23, 2014
0 746

CentOS is the default server operating system on most Linux servers these days, but many servers still run CentOS 5, which

Method 1: Cat ETC

The easiest method is to check your release files, stored on the server in /etc:

 cat /etc/*release*

If you cd directly into /etc you can do a grep to see what files are stored on your server.

cd /etc/
ls -l | grep *release

Depending on your setup, you might also want to do:

cat /etc/centos-release
cat /etc/redhat-release

Method 2: Ask WHM / Plesk

Most server control panel display your CentOS version at the top. For example WHM shows it right in the header. Looks like this:

Whm Displays Your Centos Version.png

In this case, the server is running CentOS 6.5 64-bit.

Method 3: RPM

You can also use the package installer RPM and add the option -q for “query”

rpm -q centos-release

Rpm Q Centos Release.png

Help! What Version Am I Using, 32-bit or 64-bit?!

We have already written a tutorial about this, which you can find here

x86 usually means 64-bit and i686 means 32-bit.

There are other ways to verify the CentOS version, but those 3 methods are the most reliable. If you are still unsure, you might want to ask your server hosting provider as well. Your server control panel should also list this information somewhere.

About Us

Webmaster .Net is your all-in-one resource for blogging tips, system administration guides, industry news and a growing community of webmasters.

Can't find something or want to tip us?Contact@webmaster.net

Bulls and Bears
Webmaster Tutorials, Wordpress
0 shares663 views

WordPress SQL Query: Select And Delete Posts Between Two Dates

Oliver Krautscheid - Apr 08, 2017

If you are wondering how to delete posts for a certain date, you will need to know how Wordpress stores…

Advertising and Ad Networks, Copywriting
0 shares808 views

15 Tips For Increasing Facebook Ads CTR – Full Guide [2017 Update]

Cam Connor - Mar 30, 2017

In this article, we'll talk a lot about how you can write quality text ads on Facebook Ads to get…

Webmaster Tutorials
0 shares1486 views

10 Steps To Configure Nginx For WordPress, Drop Varnish And Cut Your CPU Load By 50%

Oliver Krautscheid - Oct 10, 2016

Are you using Varnish on your Wordpress blog? Possibly the Varnish script by Unixy? Great! Get rid off it. Here's…

Follow Us And get latest news

© 2016 Webmaster.Net - Property of Peakstone Media Ltd. - All rights reserved. | Privacy Policy | DMCA | Contact Us | Advertise