0

Possible Duplicate:
What version of RHEL am I using?

I would like to find out the true and actual release version of Red Hat OS.

I know that catting /etc/redhat-release file is a popular solution...but what if somebody had tweaked that file to allow some software installation like Oracle?

In such a case, I would be getting wrong information.

Is "more /proc/version" most reliable way?

Ben
  • 1
  • 1
    http://serverfault.com/questions/89654/what-version-of-rhel-am-i-using – quanta Sep 21 '11 at 03:08
  • Thanks! From that post it looks like lsb_release is the command that can fetch version info from source of truth.. – Ben Sep 21 '11 at 03:18

2 Answers2

1

I always use cat /etc/*release -- works for most (all?) distros.

xofer
  • 3,052
  • 12
  • 19
0

I'd use /etc/issue, as /etc/*release files are sometimes modified to meet software compatibility requirements (Dell or HP's management agents, for instance).

ewwhite
  • 194,921
  • 91
  • 434
  • 799