Skip to content

mirroring repositories of type yum #1329

@kagehisa

Description

@kagehisa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions