# Package beat with proper RPM naming

**URL:** https://discuss.elastic.co/t/package-beat-with-proper-rpm-naming/82542
**Category:** Beats
**Created:** [April 17, 2017, 7:57am UTC](https://discuss.elastic.co/t/package-beat-with-proper-rpm-naming/82542 "2017-04-17T07:57:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yuanlinios](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@yuanlinios](https://discuss.elastic.co/u/yuanlinios)
#### Post date: [April 17, 2017, 7:57am UTC](https://discuss.elastic.co/t/package-beat-with-proper-rpm-naming/82542/1 "2017-04-17T07:57:43Z")

</div>

Hello experts

I developed a customized community beat, and want to build RPMs, and then deploy to my environment.

I can use "make package" to build RPMs successfully, but I want to make the package name and its rpm meta data conform to the standard "name-version-release.architecture.rpm" format, e.g. xxxbeat-6.0.0-2.x86\_64.rpm,  
(see [http://ftp.rpm.org/max-rpm/ch-rpm-file-format.html](http://ftp.rpm.org/max-rpm/ch-rpm-file-format.html))

I get some problems here

The rpm package generated uses "-" before the "arch", instead of ".". Can I change it from the build process? It is annoying to rename every time.

Release information cannot be specified. If I provide "version-release" information in "version.yml", it only appears in "Version" field of the rpm meta data. For example, I use 'version: "6.0.0-2"' in version.yml, and then get version 6.0.0\_2 when I run "rpm -qi" against the package, and the release field is always "1". Is there any method to specify the release information correctly?

---

<div class="post-metadata">

### Author: ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)
#### Post date: [April 17, 2017, 2:02pm UTC](https://discuss.elastic.co/t/package-beat-with-proper-rpm-naming/82542/2 "2017-04-17T14:02:39Z")

</div>

Have a look at this [file](https://github.com/elastic/beats/blob/master/dev-tools/packer/platforms/centos/run.sh.j2), it's where we invoke FPM to build the rpm packages. You could modify your vendored copy of that file to try adding the functionality that you need.

Note that we use common pacakge naming conventions across the Elastic stack projects, so we're relatively inflexible in changing those for the main project.

---

<div class="post-metadata">

### Author: ![yuanlinios](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@yuanlinios](https://discuss.elastic.co/u/yuanlinios)
#### Post date: [April 18, 2017, 1:32am UTC](https://discuss.elastic.co/t/package-beat-with-proper-rpm-naming/82542/3 "2017-04-18T01:32:53Z")

</div>

Great. Thanks a lot for this info! I will have a look

---

<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 5, 2017, 9:49pm UTC](https://discuss.elastic.co/t/package-beat-with-proper-rpm-naming/82542/4 "2017-07-05T21:49:40Z")

</div>


