Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I run cat /proc/version command in terminal, I got below output:

Linux version 2.6.18-348. (mockbuild@ca-build56.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)) #1 SMP Tue Jan 22 16:39:05 PST 2013

If I run lsb_release -a command, I can see below information:

LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64                         :graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:prin                         ting-4.0-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.9 (Carthage)
Release:        5.9
Codename:       Carthage

As per the output of cat /proc/version, I can see that I am using RedHat 4.1.2. While as per the output of lsb_release -a, I am using Linux Server release 5.9. Which one Is correct?

If yes, how old is it? Because, I am not getting MySQL 5.6 installer for this version. MySQL 5.6 is available only by Red Hat Enterprise Linux 5 / Oracle Linux 5 (x86, 64-bit), RPM Package version of RedHat.

  • Where can I get MySQL 5.6 version for RedHat 4?
  • If not, How can I know which Linux ( Fedora / Ubuntu / Red Hat etc. ) and which version I am using?
share|improve this question
Seems like we have several questions in here. – jsh Apr 1 '15 at 21:23

To see the distribution/version you are using, you can try:

lsb_release -a
share|improve this answer
I updated my question. Can you please suggest... – ursitesion Apr 14 '14 at 12:23
lsb_release: not found – ursitesion Apr 2 '15 at 7:14
lsb_release not found. Is there not something more default on any linux system to get at this question? – chrismarx Aug 16 '15 at 20:53
@chrismarx, not really. Bear in mind that the lsb part stands for Linux Standard Base, which is an attempt to standardise this kind of thing across all Linux systems. Without it you will just have to try different things until something works. – Graeme Aug 17 '15 at 7:38
to bad it's not there by default on centos, that was the system i was trying to find this information for- – chrismarx Aug 17 '15 at 13:27

If you refer to the "comercial" or "human name" (not the kernel) you can do:

cat /etc/issue

this give you

Linux Fedora 13 (Leonidas)

share|improve this answer

The content /proc/version only gives you information about the kernel. It does not directly provide information about the distribution.

Linux version 2.6.18-348.

This is the version of the kernel. 2.6.18 is the upstream version number. What follows is a distribution-specific built number. The el5 suffix at the end is a clue that this is a kernel from Red Hat Enterprise Linux version 5.x or a derived version.


This indicates where the kernel was compiled. Since it was compiled at Oracle, this is the Oracle Linux derivative of RHEL.

(gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)) #1 SMP Tue Jan 22 16:39:05 PST 2013

This is the version of the compiler used to compile the kernel. You do not have “Red Hat 4.1.2”, you have (or rather, the machine where the kernel was compiled has) version 4.1.2 of GCC, build number 54 from Red Hat.

The output from lsb_release gives you information about the distribution.

Distributor ID: EnterpriseEnterpriseServer

This is a pretty unhelpful name; it really indicates Oracle Enterprise Linux (now called Oracle Linux).

Release: 5.9

This is version 5.9 of this distribution.

The current major version of RHEL is 6, but version 5 is still supported by Red Hat (the plan is to support it until 2020). You're getting support from Oracle (if at all, depending on what you purchased), not from Red Hat; I don't know what their policy is. Version 5.10 is now out.

Since you've found MySQL 5.6 for RHEL 5, go ahead and install it.

share|improve this answer
Thanks @Gilles. +1 vote. Your answer deserve for it. – ursitesion Apr 15 '14 at 8:01

This looks like Oracle Linux, version 5. Check the file /etc/redhat-release This is an enterprise Linux distribution, largely compatible/comparable with Red Hat Enterprise Linux 5 or CentOS 5.

The idea of the enterprise Linux distro's is to have a long life cycle, 5-10 years, more compatible with enterprise requirements such as stability then bleeding edge, frequently updated distro's like Fedora or Ubuntu.

The consequence is that the bundled and supported software will be quite old. I'm unfamiliar with Oracle Linux, but they may have supported software channels with newer versions then those offered by default. I know Red Hat does. Those may or may not be included in your support contract.

In addition to there are the unsupported Extra Packages for Enteprise Linux (EPEL) which should also work with Oracle Linux, according to blogs.oracle.com.

The unsupported RPM packages offered by MySQL on dev.mysql.com should work as well if you don't want/need to get supported MySQL packages.

share|improve this answer

According to your ouput of cat /proc/version, you are using Redhat 4, the newest version is Redhat 7.

AFAIK, you can not run MySQL 5.6 in Redhat 4, it's not supported by MySQL. You can refer to this for more details.


It's my mistake. You are running Oracle Linux 5.9, according to lsb_release ouput.

Oracle Linux 5.9 is fully compatible — both source and binary — with Red Hat Enterprise Linux. So you can go to this site to download MySQL 5.6 and compile it to run on your server. (Or refer to this link to get it from mysql yum repository)

share|improve this answer
I updated my question. Please help... – ursitesion Apr 14 '14 at 12:23
Why these two command provide two different results? On which, should I believe? – ursitesion Apr 15 '14 at 6:59
/proc/version show the version of gcc compiler, you can run gcc -v to check. – cuonglm Apr 15 '14 at 9:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.