# ES RPM source

**URL:** <https://discuss.elastic.co/t/es-rpm-source/14031>\
**Category:** Elasticsearch\
**Created:** [October 20, 2013, 12:41pm UTC](https://discuss.elastic.co/t/es-rpm-source/14031 "2013-10-20T12:41:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joerg\_Heinemann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joerg_heinemann/32/2032_2.png) [@Joerg\_Heinemann](https://discuss.elastic.co/u/Joerg_Heinemann)\
**Post date:** [October 20, 2013, 12:41pm UTC](https://discuss.elastic.co/t/es-rpm-source/14031/1 "2013-10-20T12:41:15Z")

</div>

I would like to setup up an ElasticSearch rpm project on openSUSE Build  
Service [https://build.opensuse.org/](https://build.opensuse.org/).  
Where can I find the official ES RPM source or the elasticsearch.spec files?

I can't it find on GitHub.

Cheers  
Joerg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 20, 2013, 1:03pm UTC](https://discuss.elastic.co/t/es-rpm-source/14031/2 "2013-10-20T13:03:20Z")

</div>

Hey,

the files are automatically created from information in the pom.xml file  
when 'mvn package' is called. They are put into the target/ directory.

Out of curiosity: What advantage does using the openSuse Build service have  
compared to building the package from the pom.xml

--Alex

On Sun, Oct 20, 2013 at 2:41 PM, Joerg Heinemann [heinemannj66@gmail.com](mailto:heinemannj66@gmail.com)wrote:

> I would like to setup up an Elasticsearch rpm project on openSUSE Build  
> Service [https://build.opensuse.org/](https://build.opensuse.org/).  
> Where can I find the official ES RPM source or the elasticsearch.spec  
> files?
> 
> I can't it find on GitHub.
> 
> Cheers  
> Joerg
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Joerg\_Heinemann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joerg_heinemann/32/2032_2.png) [@Joerg\_Heinemann](https://discuss.elastic.co/u/Joerg_Heinemann)\
**Post date:** [October 20, 2013, 1:24pm UTC](https://discuss.elastic.co/t/es-rpm-source/14031/3 "2013-10-20T13:24:17Z")

</div>

Hi Alex,

I don't want to compile ES packuage.  
I only want to distribute the official ES as an rpm packet repository with  
OBS for a robust and easy to manage integration into openSUSE packet  
management.

For building Suse Studio appliances the setup would become much easier.

Joerg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [October 20, 2013, 3:07pm UTC](https://discuss.elastic.co/t/es-rpm-source/14031/4 "2013-10-20T15:07:33Z")

</div>

ES packaging is based on Maven, not RPM. Check if

[http://duncan.mac-vicar.com/2012/01/26/on-java-maven-jpp-and-rpm/](http://duncan.mac-vicar.com/2012/01/26/on-java-maven-jpp-and-rpm/)

can give some hints. You have to compile ES packages using the build stack  
of OpenSUSE to create a clean solution. JPP seems the way to go.

If there is anybody working on Fedora ES builds, I'd appreciate to get some  
info about it. TIA!

Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Joerg\_Heinemann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joerg_heinemann/32/2032_2.png) [@Joerg\_Heinemann](https://discuss.elastic.co/u/Joerg_Heinemann)\
**Post date:** [October 21, 2013, 9:33am UTC](https://discuss.elastic.co/t/es-rpm-source/14031/5 "2013-10-21T09:33:27Z")

</div>

There exists elasticsearch spec files for fedora/rhel based systems made by  
tavisto on

> **[tavisto/elasticsearch-rpms](https://github.com/tavisto/elasticsearch-rpms)**
>
> elasticsearch-rpms - Spec files and other things needed to package up elasticsearch

On the other hand ElasticSearch has build official rpm packuages during the  
last official releases.  
My first goal is to define robust install, postinstall and remove  
procedures inside the spec files and systemd integration.

I would like to be close as possible to official ElasticSearch rpm  
definitions.  
Is there any way to export the definitions from pom.xml to rpm sepec file  
format?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 21, 2013, 10:02am UTC](https://discuss.elastic.co/t/es-rpm-source/14031/6 "2013-10-21T10:02:41Z")

</div>

Hey,

If you improve the systemd integration, I'd be more than happy to include  
this upstream. In order to give you a little orientation, how the packaging  
process works using mvn

- Check out the src/rpm directory in the source repo
- src/rpm/init.d contains an init script, which is not important if you are  
interested in systemd
- src/rpm/scripts contains a postinstall, preremove, preinstall and  
preremove script, where the systemd registration is done in postinstall and  
disabled in the preremove script
- src/rpm/sysconfig/elasticsearch is the sysconfig configuration
- src/rpm/systemd/ contains elasticsearch.conf and elasticsearch.service  
files

You can run mvn -DskipTests=true rpm:rpm to create an RPM/generate the spec  
files. The spec will be put  
into target/rpm/elasticsearch/SPECS/elasticsearch.spec

If you need to built for a specific version just use "git checkout v0.90.5"  
instead of building RPMs of master.

Hope this helps for a first start.

--Alex

On Mon, Oct 21, 2013 at 11:33 AM, Joerg Heinemann [heinemannj66@gmail.com](mailto:heinemannj66@gmail.com)wrote:

> There exists elasticsearch spec files for fedora/rhel based systems made  
> by tavisto on
> 
> [GitHub - tavisto/elasticsearch-rpms: Spec files and other things needed to package up elasticsearch](https://github.com/tavisto/elasticsearch-rpms)
> 
> On the other hand Elasticsearch has build official rpm packuages during  
> the last official releases.  
> My first goal is to define robust install, postinstall and remove  
> procedures inside the spec files and systemd integration.
> 
> I would like to be close as possible to official Elasticsearch rpm  
> definitions.  
> Is there any way to export the definitions from pom.xml to rpm sepec file  
> format?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Joerg\_Heinemann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joerg_heinemann/32/2032_2.png) [@Joerg\_Heinemann](https://discuss.elastic.co/u/Joerg_Heinemann)\
**Post date:** [October 21, 2013, 8:46pm UTC](https://discuss.elastic.co/t/es-rpm-source/14031/7 "2013-10-21T20:46:26Z")

</div>

Tach Alex,

I have build the elasticsearch.spec file as recommended.

But the integration of this spec on openSUSE Build Service seems to be a  
hard way:  
[https://build.opensuse.org/package/show/home:heinemannj66/elasticsearch](https://build.opensuse.org/package/show/home:heinemannj66/elasticsearch)

If anyone is interested on maintaining this little build project - Every  
help is welcome 😉

Cheers  
Joerg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Joerg\_Heinemann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joerg_heinemann/32/2032_2.png) [@Joerg\_Heinemann](https://discuss.elastic.co/u/Joerg_Heinemann)\
**Post date:** [October 21, 2013, 8:50pm UTC](https://discuss.elastic.co/t/es-rpm-source/14031/8 "2013-10-21T20:50:05Z")

</div>

Buy the way - openSUSE:Packaging checks and guidline can be found here:

[http://en.opensuse.org/openSUSE:Packaging\_checks](http://en.opensuse.org/openSUSE:Packaging_checks)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:11am UTC](https://discuss.elastic.co/t/es-rpm-source/14031/9 "2017-07-06T02:11:20Z")

</div>


