RTPEngine RPM creation from the Tar file or source code.

RPM creation from SPEC file and tar file :

To create any RPM we need the source code of the project. In my case I am trying to create the RPM for the RTPEngine, So I am using RTPEngine source code tar file.
To build the RPMs you need following packages, Go go ahead and install those packages.

Installing the rpm-build :

Once you installed packages, you are ready to install the RPM. the rpm-build package creates one folder called rpmbuild in /root/ directory.
rpm-build will automatically create the following directory structures that will be used during the RPM build.

Download the RTPEngine tar file :

You can clone the rtpengine GitHub repo and create the tar file or simply follow the following URL it will download the RTPEngine 4.5 version tar file.
once you downloaded the tar file, Move it into the /root/rpmbuild/SOURCES/ folder.

Creating The SPEC file:

You can use SPEC file for the RTPEngine in the Tar file or you can write your own SPEC file. Here is my SPEC file.

Building the RPM from the SPEC-File :

You can also build RPM for the Tarball here is the command to use
Once the RPM’s are created, Those RPM’s will be saved in the /root/rpmbuild/RPMS/  folder. This folder contains architecture folder, So search for appropriate architecture.

Installing the RTPEngine RPM’s :

Once you built the RPM’s you can install those RPM’s using RPM command like below
To install the rtpengine daemon use the following command.
RTPEngine kernel module depends on the DKMS module so first install the DKMS module then install the kernel forwarding module like below.

Note :

You can also install those RPM’s using yum localinstall command. As it will resolve all the dependencies automatically.
That’s it. You successfully build the RTPEngine RPM’s from SPEC file.

Venkatesh

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

Leave a Reply