# Plugin install via package manager

**URL:** <https://discuss.elastic.co/t/plugin-install-via-package-manager/60542>\
**Category:** Logstash\
**Created:** [September 14, 2016, 8:02pm UTC](https://discuss.elastic.co/t/plugin-install-via-package-manager/60542 "2016-09-14T20:02:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samcmill](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@samcmill](https://discuss.elastic.co/u/samcmill)\
**Post date:** [September 14, 2016, 8:02pm UTC](https://discuss.elastic.co/t/plugin-install-via-package-manager/60542/1 "2016-09-14T20:02:12Z")

</div>

Hi,

I have the requirement that everything must be installed via the Linux distribution package manager. I need to install a couple of Logstash plugins. I'm looking for guidance on how to best install the plugins via the package manager.

I see 2 general options.

1. Put the gem files in the package, and call logstash-plugin install / uninstall in the package scripts.

Pro: uses the "native" Logstash plugin management  
Con: the installed plugin files are not owned by the package

1. Put the installed plugin files (vendor/local\_gems/\*) in the package and modify the Gemfile in the package install / uninstall scripts.

Pro: the installed plugin files are owned by the package  
Con: bypass the "native" Logstash plugin management, i.e., makes assumptions about the plugin file layout and configuration that may not always be true

Thoughts?

Thanks,  
Scott

---

<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, 4:38am UTC](https://discuss.elastic.co/t/plugin-install-via-package-manager/60542/2 "2017-07-06T04:38:26Z")

</div>


