Skip to content

mirroring repositories of type yum #1329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kagehisa opened this issue May 5, 2025 · 2 comments
Open

mirroring repositories of type yum #1329

kagehisa opened this issue May 5, 2025 · 2 comments

Comments

@kagehisa
Copy link

kagehisa commented May 5, 2025

With zypper it is possible to use repositories that are meant for the yum package manager. For example:

zypper addrepo -t YUM https://cfengine-package-repos.s3.amazonaws.com/pub/yum/x86_64 cfengine-repository

It would be nice if RMT could handle theses repositories as well, since in most scenarios the RMT Server is the single entrypoint for all packages in to the company. I tried to mirror the above repository with

rmt-cli repos custom add https://cfengine-package-repos.s3.amazonaws.com/pub/yum/x86_64 cfengine-repository

and the command did not complain. However, during a mirror run I get the following error:

W, [2025-05-05T12:17:42.764314 #30743]  WARN -- : The following errors occurred while mirroring:
W, [2025-05-05T12:17:42.764381 #30743]  WARN -- : Repository 'cfengine-repository' (cfengine-repository): Error while mirroring repository: Error while mirroring metadata: Downloading repo signature/key failed with: https://cfengine-package-repos.s3.amazonaws.com/pub/yum/x86_64/repodata/repomd.xml.key - request failed with HTTP status code 403, return code 'ok', HTTP code 403.
W, [2025-05-05T12:17:42.764408 #30743]  WARN -- : Mirroring completed with errors.

I guess this is because zypper repositories require the key to be in the repository and have a certain name. Is there a chance to support yum repositories since zypper seems to be able to handle them as well?

@digitaltom
Copy link
Member

Maybe the issue here is the return code 403 instead of 404? Did you also try with other yum repositories?

@kagehisa
Copy link
Author

kagehisa commented May 6, 2025

No I haven't tried other yum repositroies. Since this repository works flawlessly in zypper I assumed it would work with RMT as well. All I know is that repomd.xml.key does not exist and the Webserver of the repository rewards "URL probing" with 403 errors.

I will try to integrate another yum repository if I find one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants