# Dnf reposync fails to get complete repo

**URL:** <https://forums.rockylinux.org/t/dnf-reposync-fails-to-get-complete-repo/16772>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [December 8, 2024, 6:33am UTC](https://forums.rockylinux.org/t/dnf-reposync-fails-to-get-complete-repo/16772 "2024-12-08T06:33:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bishopolis](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@bishopolis](https://forums.rockylinux.org/u/bishopolis)\
**Post date:** [December 8, 2024, 6:33am UTC](https://forums.rockylinux.org/t/dnf-reposync-fails-to-get-complete-repo/16772/1 "2024-12-08T06:33:17Z")

</div>

Hi everyone,

I didn’t find this question asked, and there’s every chance I’ve done something wrong if no one else is reporting it. Keep that in mind!

(should this be in a ticket? Should this be in Rel Eng?)

I have defined a repo:

```auto
cobbler repo report --name rocky-9-CRB
Name : rocky-9-CRB
Apt Components (apt only) : []
Apt Dist Names (apt only) : []
Arch : x86_64
Breed : yum
Comment :
Createrepo Flags : <<inherit>>
Environment Variables : {}
Keep Updated : True
Mirror : https://distro.ibiblio.org/rocky/9/CRB/x86_64/os/
Mirror locally : True
Mirror Type : baseurl
Owners : ['admin']
Priority : 99
Proxy information :
RPM List : []
Rsync Options : {}
Yum Options : {}

```

When I `cobbler reposync`, it

```auto
reposync; ['rocky-9-CRB']
hello, reposync
run, reposync, run!
running: /usr/bin/dnf reposync --delete --refresh --remote-time --config=/var/www/cobbler/repo_mirror/rocky-9-CRB/.origin/rocky-9-CRB.repo --repoid=rocky-9-CRB -p /var/www/cobbler/repo_mirror -a x86_64
4.5 kB 00:00
Deleted old repo metadata for /var/www/cobbler/repo_mirror/rocky-9-CRB/.origin/repodata
received on stdout: Directory walk started
running: chown -R root:apache /var/www/cobbler/repo_mirror/rocky-9-CRB
received on stdout:
running: chmod -R 755 /var/www/cobbler/repo_mirror/rocky-9-CRB

```

That is, it completes without error. However, at least one RPM is missing: `perl-IPC-run`. It’s here:

- [https://distro.ibiblio.org/rocky/9/CRB/x86\_64/os/Packages/p/perl-IPC-Run-20200505.0-6.el9.noarch.rpm](https://distro.ibiblio.org/rocky/9/CRB/x86_64/os/Packages/p/perl-IPC-Run-20200505.0-6.el9.noarch.rpm)
- [https://dl.rockylinux.org/pub/rocky/9/CRB/x86\_64/os/Packages/p/perl-IPC-Run-20200505.0-6.el9.noarch.rpm](https://dl.rockylinux.org/pub/rocky/9/CRB/x86_64/os/Packages/p/perl-IPC-Run-20200505.0-6.el9.noarch.rpm)

… but it’s never downloaded:

```auto
# find /var/www/cobbler/repo_mirror/rocky-9-CRB -name perl-I\*rpm
/var/www/cobbler/repo_mirror/rocky-9-CRB/Packages/p/perl-IO-Tty-1.16-4.el9.x86_64.rpm

```

(ie one file, but no `perl-IPC-Run-20200505.0-6.el9.noarch.rpm`, nothing like it)

This makes me think dnf’s reposync is borked, but that’s rather unexpected for a seemingly-well-tested enterprise tool.

I’ve tried

- multiple upstreams
- reposync --newer or not
- vaporizing everything and mirroring from scratch
- updating and rebooting for funzies
- appealing to a capricious god to please make IBM do apt4rpm instead.

What completely obvious thing am I missing? Heckle if you want, I’ll take my lumps if it helps me get a win. 😃

thanks for your time.

– bish

---

<div class="post-metadata">

**Author:** ![elguero](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/elguero/32/5760_2.png) [@elguero](https://forums.rockylinux.org/u/elguero)\
**Post date:** [December 8, 2024, 6:53am UTC](https://forums.rockylinux.org/t/dnf-reposync-fails-to-get-complete-repo/16772/2 "2024-12-08T06:53:16Z")

</div>

Hi!

I wonder if it is because the `reposync` command is specifying `-a x86_64` which means it will only sync `x86_64` packages. Perhaps you need to specify `-a noarch` as well since the package you are looking for is `noarch`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [February 6, 2025, 6:54am UTC](https://forums.rockylinux.org/t/dnf-reposync-fails-to-get-complete-repo/16772/3 "2025-02-06T06:54:17Z")

</div>

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