Creating a new RPM package
While Oracle provides a large number of RPMs, sometimes you just need to create a custom RPM package that allows you to easily deploy your own software. Creating an RPM file is easy to do!
Getting ready
To do this, you will need a development system, running Oracle Linux 8, with access to the Extra Packages for Enterprise Linux (EPEL) channel. It is highly recommended to have a dedicated system to build RPMs on, and to not build RPMs on production systems. You will also need a system to test installing the RPM on.
Note
Depending on the package being built, you may need additional channels, such as CodeReady or Distro Builder.
There are a few things we need to do first – mainly, installing the RPM developer tools. In order to do this, we also need to add the EPEL repo to the system.
While most of the recipes in this book use the root
user for most of the work, this recipe will only use root for the installation of the software. Perform...