First let’s set up our build rpm environment by installing the following:
Then we’ll set up the folder structure with the rpmdev-setuptree command. It will create tbe rpmbuild folder and it’s subfolders as shown below.
In the SPEC folder we create elasticsearch.spec, and in the SOURCES folder we download the tar-file from elasticsearch.
Lastly build the rpm package: