[CentOS] Faking RHEL with CentOS

John jses27 at gmail.com
Wed Oct 1 18:06:07 UTC 2008

>From CentOS /etc/redhat-release:
CentOS release 5.2 (Final)

>From RHEL3 /etc/redhat-release:
Red Hat Enterprise Linux WS release 3 (Taroon Update 9)

>From RHEL4 /etc/redhat-release:
Red Hat Enterprise Linux WS release 4 (Nahant Update 7)

Has anybody maybe actually done this already and can tell if it'd work?

What other places may a software look into to check the computer runs the
correct OS?

JohnStanley Writes:

Yes that will work. Replace the appropriate string. Also do cat /etc/issue.
One more and it is called programatically "rpm --whatprovides"


More information about the CentOS mailing list