# Yum repo doesn't work

**URL:** <https://discuss.elastic.co/t/yum-repo-doesnt-work/278404>\
**Category:** Elasticsearch\
**Created:** [July 12, 2021, 9:38am UTC](https://discuss.elastic.co/t/yum-repo-doesnt-work/278404 "2021-07-12T09:38:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![loposk](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@loposk](https://discuss.elastic.co/u/loposk)\
**Post date:** [July 12, 2021, 9:38am UTC](https://discuss.elastic.co/t/yum-repo-doesnt-work/278404/1 "2021-07-12T09:38:10Z")

</div>

Added a repository according to the instructions [Install Elasticsearch with RPM | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html)

When yum trying download [https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz](https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz) I got error.

When I trying open in browser [https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz](https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz), I see:

```auto
XML Parsing Error: not well-formed
Location: https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz
Line Number 1, Column 1:

^

```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 12, 2021, 11:15am UTC](https://discuss.elastic.co/t/yum-repo-doesnt-work/278404/2 "2021-07-12T11:15:12Z")

</div>

can you share the error you got when calling yum instead of the one you got when using the browser? Which distribution are you using?

---

<div class="post-metadata">

**Author:** ![loposk](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@loposk](https://discuss.elastic.co/u/loposk)\
**Post date:** [July 12, 2021, 11:41am UTC](https://discuss.elastic.co/t/yum-repo-doesnt-work/278404/3 "2021-07-12T11:41:05Z")

</div>

Centos 8  
My error:

```auto
sudo yum check-update
Repository extras is listed more than once in the configuration
Elastic repository for 7.x packages 372 kB/s | 1.0 MB 00:02
Errors during downloading metadata for repository 'elastic-7.x':
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 27624991 bytes remaining to read]
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 25293263 bytes remaining to read]
  - Curl error (35): SSL connect error for https://artifacts.elastic.co/packages/7.x/yum/repodata/primary.xml.gz [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to artifacts.elastic.co:443]
  - Curl error (52): Server returned nothing (no headers, no data) for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [Empty reply from server]
Error: Failed to download metadata for repo 'elastic-7.x': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success

```

After this error I added sslverify=false in /etc/yum.conf. And got this error:

```auto
sudo yum check-update
Repository extras is listed more than once in the configuration
Elastic repository for 7.x packages 327 kB/s | 671 kB 00:02
Errors during downloading metadata for repository 'elastic-7.x':
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 27757003 bytes remaining to read]
  - Curl error (52): Server returned nothing (no headers, no data) for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [Empty reply from server]
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 28030619 bytes remaining to read]
  - Curl error (18): Transferred a partial file for https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz [transfer closed with 28355944 bytes remaining to read]
Error: Failed to download metadata for repo 'elastic-7.x': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success

```

---

<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:** [August 9, 2021, 11:41am UTC](https://discuss.elastic.co/t/yum-repo-doesnt-work/278404/4 "2021-08-09T11:41:41Z")

</div>

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