# CentOS Yum Repo Issues

**URL:** <https://discuss.elastic.co/t/centos-yum-repo-issues/294619>\
**Category:** Elasticsearch\
**Created:** [January 17, 2022, 6:33pm UTC](https://discuss.elastic.co/t/centos-yum-repo-issues/294619 "2022-01-17T18:33:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgoldsmith](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dgoldsmith](https://discuss.elastic.co/u/dgoldsmith)\
**Post date:** [January 17, 2022, 6:33pm UTC](https://discuss.elastic.co/t/centos-yum-repo-issues/294619/1 "2022-01-17T18:33:26Z")

</div>

If I simply point a server to the Elastic Yum repo at [https://artifacts.elastic.co/packages/7.x/yum/](https://artifacts.elastic.co/packages/7.x/yum/) using a copy of the Yum repo config file provided from the elastic web site, it is able to reach out and retrieve the Yum/RPM packages (assuming outbound Internet access is allowed).

But we normally mirror public Yum repos on an internal Pulp server and then point our servers there. Neither the pulp-admin command nor wget can reach out and retrieve the top-level web page at packages/7.x/yum and I get similar issues with various web browsers on my laptop.

If I use wget to retrieve a specific know file, such as [https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz](https://artifacts.elastic.co/packages/7.x/yum/repodata/filelists.xml.gz), it works. But in order to mirror the repo, I need a full listing.

Is this intentional behavior or unexpected?

Thanks,  
dgoldsmith

---

<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:** [January 25, 2022, 3:34pm UTC](https://discuss.elastic.co/t/centos-yum-repo-issues/294619/2 "2022-01-25T15:34:28Z")

</div>

Just on top of my head: Have you tried reposync? Is it showing the same errors?

---

<div class="post-metadata">

**Author:** ![dgoldsmith](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dgoldsmith](https://discuss.elastic.co/u/dgoldsmith)\
**Post date:** [January 26, 2022, 4:34pm UTC](https://discuss.elastic.co/t/centos-yum-repo-issues/294619/3 "2022-01-26T16:34:58Z")

</div>

Creating a local /etc/yum.repos.d/elk-7.repo file with the public URL and running 'reposync -r elk-7 -d ' did work and pulled down 900+ RPMs from 49 different versions of 7.x.y.

It seems like the web server on the elastic side is perhaps looking for specific user-agent strings or something else that distinguishes reposync from a web browser. Usually, Yum repos are viewable via a web browser to the repo URL.

Thanks,  
dgoldsmith

---

<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:** [February 23, 2022, 4:35pm UTC](https://discuss.elastic.co/t/centos-yum-repo-issues/294619/4 "2022-02-23T16:35:31Z")

</div>

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