# Yum repositories configuration

**URL:** <https://community.sonatype.com/t/yum-repositories-configuration/7397>\
**Category:** Sonatype Nexus Repository\
**Tags:** help, nexus-repository\
**Created:** [September 29, 2021, 9:38pm UTC](https://community.sonatype.com/t/yum-repositories-configuration/7397 "2021-09-29T21:38:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiunov713](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tiunov713](https://community.sonatype.com/u/tiunov713)\
**Post date:** [September 29, 2021, 9:38pm UTC](https://community.sonatype.com/t/yum-repositories-configuration/7397/1 "2021-09-29T21:38:32Z")

</div>

Good afternoon.  
Maybe someone can help me here.  
I created a yum repository in Sonatype Nexus Repository ManagerOSS 3.34.0-01, and filled it with packages as shown in the attached screenshot.

 ![1](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/b/bd3097fc01bde693962ee0c5e754e41137364708.jpeg)

also i created a file /etc/yum.repos.d/Nexus.repo on the client machine:

> [root@repo0 yum.repos.d]# cat Nexus.repo  
> [nexusrepo]  
> name=Nexus - Repository  
> #baseurl=[http://localhost:8081/repository/RedHat-based/packages/m/mc/](http://localhost:8081/repository/RedHat-based/packages/m/mc/)  
> baseurl=[http://localhost:8081/repository/RedHat-based/](http://localhost:8081/repository/RedHat-based/)  
> gpgcheck=0  
> repo\_gpgcheck=0  
> priority=1  
> enabled=1

When i trying to access the repository, yum get error at missing of the repodata/repomd.xml file:

> [root@repo0 yum.repos.d]# yum update  
> Загружены модули: fastestmirror  
> Loading mirror speeds from cached hostfile  
> [http://localhost:8081/repository/RedHat-based/repodata/repomd.xml:](http://localhost:8081/repository/RedHat-based/repodata/repomd.xml:) [Errno 14] HTTP Error 404 - Not Found  
> Пробуем другое зеркало.  
> To address this issue please refer to the below wiki article
> 
> If above article doesn’t help to resolve this issue please use [https://bugs.centos.org/](https://bugs.centos.org/).
> 
> No packages marked for update

I want to understand how can I generate a repomd.xml file that will be common for all packages in the repository? Or is it not possible and I have to place all packages in one directory?

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [October 4, 2021, 5:49pm UTC](https://community.sonatype.com/t/yum-repositories-configuration/7397/2 "2021-10-04T17:49:27Z")

</div>

I think what you’d like to do here is set the `repodepth=0` if you want the repository metadata generated for everything.

Setting a non-zero depth is a way to have multiple yum repositories within a single hosted repository. (e.g. for different distributions).
