# Feedback on providing RPM packages

**URL:** <https://discuss.elastic.co/t/feedback-on-providing-rpm-packages/11136>\
**Category:** Elasticsearch\
**Created:** [March 13, 2013, 1:41pm UTC](https://discuss.elastic.co/t/feedback-on-providing-rpm-packages/11136 "2013-03-13T13:41:27Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [March 13, 2013, 1:41pm UTC](https://discuss.elastic.co/t/feedback-on-providing-rpm-packages/11136/1 "2013-03-13T13:41:27Z")

</div>

Hey folks,

I am currently preparing a pull request to be able to create RPM packages  
during build by calling "mvn rpm:rpm" via a maven plugin (you must have the  
rpm development packages of your distribution installed in order to get  
this working!).

The pull request is available at

> <https://github.com/elastic/elasticsearch/pull/2758>

I would be very glad if someone with more administration and packaging  
skills than me (shouldnt be too hard actually) could take a look at the  
created packages. I'm thankful for any input on how to improve the created  
package.

I tried to create an RPM which supports systemd as well as starting via old  
fashioned init script, so both are included and you can choose your  
preferred start up method (and thus need to configure runlevels manually  
via chkconfig in the init script case). Both scripts drop root privileges  
on startup and run as elasticsearch user.

I hope that this package can run own fedora, centos as well as opensuse in  
order to cover as many of the big distributions as possible.

So, anyone interested in an RPM, please test and give some feedback. Thanks!

--Alexander

--  
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:** ![VegHead](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/veghead/32/2411_2.png) [@VegHead](https://discuss.elastic.co/u/VegHead)\
**Post date:** [March 13, 2013, 3:57pm UTC](https://discuss.elastic.co/t/feedback-on-providing-rpm-packages/11136/2 "2013-03-13T15:57:58Z")

</div>

Does this create a single RPM for all Elasticsearch stuff, including  
plugins? I'm not familiar with the Maven RPM archetype, so I can't quite  
tell what it's doing... 🙂

-Sean

On Wednesday, March 13, 2013 6:41:27 AM UTC-7, Alexander Reelsen wrote:

> Hey folks,
> 
> I am currently preparing a pull request to be able to create RPM packages  
> during build by calling "mvn rpm:rpm" via a maven plugin (you must have the  
> rpm development packages of your distribution installed in order to get  
> this working!).
> 
> The pull request is available at  
> [Add support for creating a RPM package with maven by spinscale · Pull Request #2758 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/pull/2758)
> 
> I would be very glad if someone with more administration and packaging  
> skills than me (shouldnt be too hard actually) could take a look at the  
> created packages. I'm thankful for any input on how to improve the created  
> package.
> 
> I tried to create an RPM which supports systemd as well as starting via  
> old fashioned init script, so both are included and you can choose your  
> preferred start up method (and thus need to configure runlevels manually  
> via chkconfig in the init script case). Both scripts drop root privileges  
> on startup and run as elasticsearch user.
> 
> I hope that this package can run own fedora, centos as well as opensuse in  
> order to cover as many of the big distributions as possible.
> 
> So, anyone interested in an RPM, please test and give some feedback.  
> Thanks!
> 
> --Alexander

--  
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:** [March 13, 2013, 4:13pm UTC](https://discuss.elastic.co/t/feedback-on-providing-rpm-packages/11136/3 "2013-03-13T16:13:12Z")

</div>

Hey,

this only creates a RPM package of the elasticsearch distribution (contents  
are similar to the zipfile). There are no extra plugins packaged. You still  
need to install them via the plugin command..

Hope this helps,  
--Alex

On Wed, Mar 13, 2013 at 4:57 PM, VegHead [organicveggie@gmail.com](mailto:organicveggie@gmail.com) wrote:

> Does this create a single RPM for all Elasticsearch stuff, including  
> plugins? I'm not familiar with the Maven RPM archetype, so I can't quite  
> tell what it's doing... 🙂
> 
> -Sean
> 
> On Wednesday, March 13, 2013 6:41:27 AM UTC-7, Alexander Reelsen wrote:
> 
> > Hey folks,
> > 
> > I am currently preparing a pull request to be able to create RPM packages  
> > during build by calling "mvn rpm:rpm" via a maven plugin (you must have the  
> > rpm development packages of your distribution installed in order to get  
> > this working!).
> > 
> > The pull request is available at [https://github.com/](https://github.com/)\*\*  
> > elasticsearch/elasticsearch/\*\*pull/2758[https://github.com/elasticsearch/elasticsearch/pull/2758](https://github.com/elasticsearch/elasticsearch/pull/2758)
> > 
> > I would be very glad if someone with more administration and packaging  
> > skills than me (shouldnt be too hard actually) could take a look at the  
> > created packages. I'm thankful for any input on how to improve the created  
> > package.
> > 
> > I tried to create an RPM which supports systemd as well as starting via  
> > old fashioned init script, so both are included and you can choose your  
> > preferred start up method (and thus need to configure runlevels manually  
> > via chkconfig in the init script case). Both scripts drop root privileges  
> > on startup and run as elasticsearch user.
> > 
> > I hope that this package can run own fedora, centos as well as opensuse  
> > in order to cover as many of the big distributions as possible.
> > 
> > So, anyone interested in an RPM, please test and give some feedback.  
> > Thanks!
> > 
> > --Alexander
> 
> --  
> 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:** ![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:** [March 21, 2013, 11:08am UTC](https://discuss.elastic.co/t/feedback-on-providing-rpm-packages/11136/4 "2013-03-21T11:08:10Z")

</div>

Hey there,

I just created an RPM from the current master branch (which basically is  
just released the RC1 version). I would be grateful for any kind of  
feedback.

Go here and download the RPM  
[https://docs.google.com/file/d/0BxIQ48d0OE1pNHZrVEtwcm5wdGM/edit](https://docs.google.com/file/d/0BxIQ48d0OE1pNHZrVEtwcm5wdGM/edit)

So, if you install the RPM, I would be glad if you could check for the  
following features

- Does it install flawlessly
- Does it start automatically
- Does it run under elasticsearch user privileges?
- Are there log files owned by the elasticsearch user at  
/var/log/elasticsearch
- Do data files exist at /var/lib/elasticsearch ?
- Can the package be removed without problems
- Is the elasticsearch user removed after the uninstallation?

If you find anything suspicious in between, drop me a mail including your  
distribution, its version and a little information what failed.

If you are using a systemd enabled system (like opensuse) you can ignore  
the init script.  
Otherwise chkconfig and the init script should be used to enable the  
service.

Thanks!

On Wed, Mar 13, 2013 at 5:13 PM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> Hey,
> 
> this only creates a RPM package of the elasticsearch distribution  
> (contents are similar to the zipfile). There are no extra plugins packaged.  
> You still need to install them via the plugin command..
> 
> Hope this helps,  
> --Alex
> 
> On Wed, Mar 13, 2013 at 4:57 PM, VegHead [organicveggie@gmail.com](mailto:organicveggie@gmail.com) wrote:
> 
> > Does this create a single RPM for all Elasticsearch stuff, including  
> > plugins? I'm not familiar with the Maven RPM archetype, so I can't quite  
> > tell what it's doing... 🙂
> > 
> > -Sean
> > 
> > On Wednesday, March 13, 2013 6:41:27 AM UTC-7, Alexander Reelsen wrote:
> > 
> > > Hey folks,
> > > 
> > > I am currently preparing a pull request to be able to create RPM  
> > > packages during build by calling "mvn rpm:rpm" via a maven plugin (you must  
> > > have the rpm development packages of your distribution installed in order  
> > > to get this working!).
> > > 
> > > The pull request is available at [https://github.com/](https://github.com/)\*\*  
> > > elasticsearch/elasticsearch/\*\*pull/2758[https://github.com/elasticsearch/elasticsearch/pull/2758](https://github.com/elasticsearch/elasticsearch/pull/2758)
> > > 
> > > I would be very glad if someone with more administration and packaging  
> > > skills than me (shouldnt be too hard actually) could take a look at the  
> > > created packages. I'm thankful for any input on how to improve the created  
> > > package.
> > > 
> > > I tried to create an RPM which supports systemd as well as starting via  
> > > old fashioned init script, so both are included and you can choose your  
> > > preferred start up method (and thus need to configure runlevels manually  
> > > via chkconfig in the init script case). Both scripts drop root privileges  
> > > on startup and run as elasticsearch user.
> > > 
> > > I hope that this package can run own fedora, centos as well as opensuse  
> > > in order to cover as many of the big distributions as possible.
> > > 
> > > So, anyone interested in an RPM, please test and give some feedback.  
> > > Thanks!
> > > 
> > > --Alexander
> > 
> > --  
> > 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:** ![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:45am UTC](https://discuss.elastic.co/t/feedback-on-providing-rpm-packages/11136/5 "2017-07-06T02:45:27Z")

</div>


