# CentOS 7: Failed to Update Elasticsearch 7 with yum

**URL:** <https://discuss.elastic.co/t/centos-7-failed-to-update-elasticsearch-7-with-yum/287197>\
**Category:** Elasticsearch\
**Created:** [October 20, 2021, 12:58pm UTC](https://discuss.elastic.co/t/centos-7-failed-to-update-elasticsearch-7-with-yum/287197 "2021-10-20T12:58:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![obi134](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@obi134](https://discuss.elastic.co/u/obi134)\
**Post date:** [October 20, 2021, 12:58pm UTC](https://discuss.elastic.co/t/centos-7-failed-to-update-elasticsearch-7-with-yum/287197/1 "2021-10-20T12:58:36Z")

</div>

**Elasticsearch version** ( `bin/elasticsearch --version` ):  
Version: 7.10.0, Build: default/rpm/51e9d6f22758d0374a0f3f5c6e8f3a7997850f96/2020-11-09T21:30:33.964949Z, JVM: 15.0.1

**JVM version** ( `java -version` ):  
openjdk version "1.8.0\_302"  
OpenJDK Runtime Environment (build 1.8.0\_302-b08)  
OpenJDK 64-Bit Server VM (build 25.302-b08, mixed mode)

**OS version** ( `uname -a` if on a Unix-like system):  
CentOS Linux release 7.9.2009 (Core)

**Description of the problem including expected versus actual behavior** :  
When executing `yum check-update` I got following error:  
`https://artifacts.elastic.co/packages/7.x/yum/repodata/repomd.xml: [Errno 14] curl#35 - "Encountered end of file" Trying other mirror.`  
I expected to see the current available version to start an update afterwards

**Steps to reproduce** :

1. Repofile /etc/yum.repos.d/Elasticsearch.repo:  
[Elasticsearch]  
name=Elasticsearch repository for 7.x packages  
baseurl=https://artifacts.elastic.co/packages/7.x/yum  
gpgcheck=1  
gpgkey=https://artifacts.elastic.co/GPG-KEY-Elasticsearch  
enabled=1  
autorefresh=1  
type=rpm-md
2. Execute `yum check-update`

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 20, 2021, 11:50pm UTC](https://discuss.elastic.co/t/centos-7-failed-to-update-elasticsearch-7-with-yum/287197/2 "2021-10-20T23:50:42Z")

</div>

Does this happen every time you do this?

---

<div class="post-metadata">

**Author:** ![obi134](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@obi134](https://discuss.elastic.co/u/obi134)\
**Post date:** [October 21, 2021, 5:40am UTC](https://discuss.elastic.co/t/centos-7-failed-to-update-elasticsearch-7-with-yum/287197/3 "2021-10-21T05:40:12Z")

</div>

Yes, it is. Just checked again

---

<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:** [November 18, 2021, 5:40am UTC](https://discuss.elastic.co/t/centos-7-failed-to-update-elasticsearch-7-with-yum/287197/4 "2021-11-18T05:40:36Z")

</div>

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