Prepare to make application RPMs

To build your own RPMs, choose a tool of your choice, such as the rpmbuild tool, and initialize the RPM build tree in your home directory. If your RPMs are accessible to image builder, you can use the method you prefer to build the application RPMs.

The following is an example procedure.

Prerequisites
  • You have set up a Red Hat Enterprise Linux for Edge (RHEL for Edge) 9.6 build host that meets the image builder system requirements.

  • You have root access to the host.

Procedure
  1. Install the rpmbuild tool and create the yum repository for it by running the following command:

    $ sudo dnf install rpmdevtools rpmlint yum-utils createrepo
  2. Create the file tree you need to build RPM packages by running the following command:

    $ rpmdev-setuptree
Verification
  • List the directories to confirm creation by running the following command:

    $ ls ~/rpmbuild/
    Example output
    BUILD RPMS SOURCES SPECS SRPMS