Fooling Linux Version

Objective: To let an application install on your linux machine irrespective of the linux version.

Note: Using redhat 7.5

Run the following command as root

> cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)

Now, if the application requirement is of rhel 5.9

Edit the redhat-release file as redhat-release.old and create a new file redhat-release with following contents.

> vi redhat-release
Red Hat Enterprise Linux Server release 5.9 (Tikanga)

Now try installing the application you want.

Most of the time, the version check is based on redhat-release file only.

This might not solve the issue, but worth a try.

Comments