[CentOS] Faking RHEL with CentOS

NiftyClusters T Mitchell niftycluster at niftyegg.com
Wed Oct 1 22:24:59 UTC 2008

On Wed, Oct 1, 2008 at 11:06 AM, John <jses27 at gmail.com> wrote:
> >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"

If there are 10000 files it might look at 10000 different places including
device names.... kernel names, shell features, kernel modules and more.
i.e all the things that 'configure' might know about and more.

/etc/redhat-release is the most common.   N.B. You may need to restore
the CentOS words often to permit CentOS updates to do the right thing.

If /etc/redhat-release is not the answer you may have to look harder at the
failing process with strace  or even SELinux tricks to see what it does
look at.

If it is Oracle, Given the price of Oracle -- just purchase the RH product.
It is common that the expensive packages are the most restrictive and putative.

        T o m   M i t c h e l l

More information about the CentOS mailing list