# Yum is unable to update/install from elastic repo

**URL:** <https://discuss.elastic.co/t/yum-is-unable-to-update-install-from-elastic-repo/325221>\
**Category:** Elasticsearch\
**Created:** [February 10, 2023, 8:14am UTC](https://discuss.elastic.co/t/yum-is-unable-to-update-install-from-elastic-repo/325221 "2023-02-10T08:14:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas3](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@Thomas3](https://discuss.elastic.co/u/Thomas3)\
**Post date:** [February 10, 2023, 8:14am UTC](https://discuss.elastic.co/t/yum-is-unable-to-update-install-from-elastic-repo/325221/1 "2023-02-10T08:14:49Z")

</div>

Hello,  
when trying to perform updates in RHEL8, I'm getting

> Failed to download metadata for repo 'logstash-7.x': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

with the following

```auto
[logstash-7.x]
name=Elastic 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

```

Trying to poke around in browser also gives:  
No webpage was found for the web address: **[https://artifacts.elastic.co/packages/8.x/apt](https://artifacts.elastic.co/packages/8.x/apt)**  
HTTP ERROR 404  
or  
No webpage was found for the web address: **[https://artifacts.elastic.co/packages/7.x/yum](https://artifacts.elastic.co/packages/7.x/yum)**  
HTTP ERROR 404  
or  
No webpage was found for the web address: **[https://artifacts.elastic.co/downloads/elasticsearch/](https://artifacts.elastic.co/downloads/elasticsearch/)**  
HTTP ERROR 404

Is directory listing just flat out off?  
What purpose does the documentation refer this way of installing for?  
//Tomas

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [February 13, 2023, 9:04pm UTC](https://discuss.elastic.co/t/yum-is-unable-to-update-install-from-elastic-repo/325221/2 "2023-02-13T21:04:43Z")

</div>

Are you trying to install something from the 7.x family? The process is similar but want to make sure we are talking about the same version of the documentation.

RedHat for 7.x would be here:

> **[Install Elasticsearch with RPM | Elasticsearch Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/rpm.html)**

Where as current would be here:

> **[Install Elasticsearch with RPM | Elasticsearch Guide \[8.6\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html)**

What command are you running when you get the error. If there is any more information being returned after the command fails could that be included as well?

---

<div class="post-metadata">

**Author:** ![Thomas3](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@Thomas3](https://discuss.elastic.co/u/Thomas3)\
**Post date:** [February 14, 2023, 4:50am UTC](https://discuss.elastic.co/t/yum-is-unable-to-update-install-from-elastic-repo/325221/3 "2023-02-14T04:50:31Z")

</div>

In the end the issue was more of conflict between silly setup infrastructure team put into yum.  
Since they told yum to use their cacert with one crt only, everything else(public and trusted even) is going to die on SSL error, and not all error messages will say that.  
which brings us to two options how to resolve the issue. We choose the latter - sslverify was skipped in our ansible playbook.

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [February 14, 2023, 2:20pm UTC](https://discuss.elastic.co/t/yum-is-unable-to-update-install-from-elastic-repo/325221/4 "2023-02-14T14:20:51Z")

</div>

Ok, nice good to know, and glad you guys figured it 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:** [March 14, 2023, 2:20pm UTC](https://discuss.elastic.co/t/yum-is-unable-to-update-install-from-elastic-repo/325221/5 "2023-03-14T14:20:57Z")

</div>

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