Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Regards, Ben

share|improve this question

marked as duplicate by quanta, John Gardeniers, EEAA, Antoine Benkemoun, Jason Berg Sep 21 '11 at 5:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
    
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 3:18

2 Answers 2

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

share|improve this answer

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).

share|improve this answer

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