Creating a custom Oracle EBS preinstall RPM for RHEL7

Posted in: Oracle, Technical Track

Oracle, by default, ships preinstall RPMs only for Oracle Linux.

Preinstall RPMs make the life of DBA very easy by taking care of installing full laundry lists of required prereq RPMs for Oracle E-Business Suite, as well as setting all required kernel and limits parameters. Even though Oracle Linux is derived from Redhat Linux, we cannot install those preinstall RPMs on Redhat Linux. Oracle-supplied preinstall RPMs have a prerequisite of using UEK kernel. UEK kernel is Oracle Linux-specific, Redhat does not ship that kernel. This makes the RPM fail on Redhat and it won’t set any required kernel parameters, etc., on Redhat. So I have created a new RPM for Redhat that achieves the same result using the SRPMs from Oracle

You can download the RPM from the link below:

If you want to prepare the RPM yourself, here are the steps to follow:

$ wget
$ rpm2cpio oracle-ebs-server-R12-preinstall-1.0-3.el7.src.rpm | cpio -idmv
$ mkdir -p ~/rpmbuild/SOURCES/
$ mkdir -p ~/rpmbuild/SPECS/
$ cp oracle-ebs-server-R12-preinstall-1.0.tar.gz ~/rpmbuild/SOURCES/
$ cp oracle-ebs-server-R12-preinstall.spec ~/rpmbuild/SPECS/
$ vi ~/rpmbuild/SPECS/oracle-ebs-server-R12-preinstall.spec
$ rpmbuild -ba ~/rpmbuild/SPECS/oracle-ebs-server-R12-preinstall.spec
$ ls -ltr /home/oracle/rpmbuild/RPMS/x86_64/oracle-ebs-server-R12-preinstall-1.0-3.rhel7.x86_64.rpm

Good luck installing Oracle on Redhat Linux. Please let me know how these worked for you.

Want to talk with an expert? Schedule a call with our team to get the conversation started.

About the Author

Vasu Balla’s colleagues call him “Eagle Eye” for a reason – his diverse technical background enables him to view his clients’ systems from a 360-degree angle, giving him a higher level of understanding. Vasu is well known for being approachable, and he truly enjoys helping people. Even former colleagues reach out to Vasu when they are really stuck on an issue. When he isn’t working, Vasu can be found in the kitchen trying new recipes.

2 Comments. Leave new

vadapalle raghudhar
November 16, 2021 4:41 am

where this two commands put


Robin Chatterjee
April 12, 2023 2:30 am

Those are substitution commands within VI. If you want to fully automate this you should be able t do something similar using sed and output redirection.


Leave a Reply

Your email address will not be published. Required fields are marked *