# Automatic plugin update on package update

**URL:** <https://discuss.elastic.co/t/automatic-plugin-update-on-package-update/218612>\
**Category:** Elasticsearch\
**Created:** [February 10, 2020, 2:49pm UTC](https://discuss.elastic.co/t/automatic-plugin-update-on-package-update/218612 "2020-02-10T14:49:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtrojan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtrojan/32/45072_2.png) [@mtrojan](https://discuss.elastic.co/u/mtrojan)\
**Post date:** [February 10, 2020, 2:49pm UTC](https://discuss.elastic.co/t/automatic-plugin-update-on-package-update/218612/1 "2020-02-10T14:49:30Z")

</div>

Dear Community,

we ran into this kind of error multiple times:

> Plugin [analysis-icu] was built for Elasticsearch version 7.5.0 but version 7.5.2 is running

So we had an Elasticsearch installation in CentOS 8

> dnf install elasticsearch  
> /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu

And if there are updates for elasticsearch available, after

> dnf update

The service might not be able to start again because plugins are not updated automatically:

> Plugin [analysis-icu] was built for Elasticsearch version 7.5.0 but version 7.5.2 is running

So of course you can solve this manually by using

> /usr/share/elasticsearch/bin/elasticsearch-plugin remove analysis-icu  
> /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu

But i wonder if the CentOS package for elasticsearch could be optimized in a way that plugins are re-installed automatically after dnf update?  
Of course there might be workarounds for this e.g. like writing your own dnf hook, but since many people are affected by this problem, i wonder if there could be a generic solution inside the elasticsearch package itself.

Best regards,  
Mario

---

<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:** [March 9, 2020, 2:49pm UTC](https://discuss.elastic.co/t/automatic-plugin-update-on-package-update/218612/2 "2020-03-09T14:49:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
