Can you reposync almaunix into rhel8 repository

Can we reposyn almalinux into rhel8 or the repository server also needs to be alamlinu x
rhel8-node # cat /etc/yum.repos.d/alma-base.repo

[alma-base]
name=Extra Packages for Enterprise Linux 8 - $basearch
baseurl=http://almalinux-binary/almalinux-remote/8.10/BaseOS/x86_64
failovermethod=priority
sslverify=0
enabled=1
gpgcheck=0

execute reposync in rhel8 node:
rhel8-node #> sudo /usr/bin/reposync -p /var/repo --download-metadata --downloadcomps --repo alma-linux

You can use RHEL as a repo server for AlmaLinux 8. What’s your actual issue?

From the looks of it, you may want to change:

  • baseurl=... to
    baseurl=https://repo.almalinux.org/almalinux/8.10/BaseOS/x86_64/os/
    (or preferably a mirror), unless almalinux-binary is an actual server on your network.
  • --repo alma-linux to --repo alma-base

If you reposync repos of multiple distros, then same -p /var/repo for each distro is probably not a good idea, assuming the distros have common names. (I have never used reposync, so don’t know what it puts under the “-p” location.)


The reposync is merely a wrapper that calls dnf with some options. Any distro that has sufficiently recent version of dnf should be able to download all YUM-repos.