ARTIFACTORY: How to proxy an openSUSE repository

AuthorFullName__c
Shisiya Sebastian
articleNumber
000005830
FirstPublishedDate
2023-07-20T17:26:08Z
lastModifiedDate
2025-07-22

ARTIFACTORY: How to proxy an openSUSE repository

This article helps you to find the step by step procedure to mirror an OpenSUSE repository and how to configure it in the Zypper.

Configure the openSUSE repository mirror

1. Create an RPM remote repository “repomirror” with the below URL,
http://download.opensuse.org/

User-added image

2. Configure the zypper repository configuration file with the baseurl having the respective <PATH_TO_REPODATA_FOLDER>

baseurl=http://admin:<encoded_password>@<ARTIFACTORY_HOST/artifactory/<reponame>/<PATH_TO_REPODATA_FOLDER>


For example, if you want to create a repository for openSUSE Backports update, you can use the following configuration.

File: /etc/zypp/repos.d/repo-backports-update.repo
[repo-backports-update]
name=Update repository of openSUSE Backports
enabled=1
autorefresh=1
baseurl=http://admin:<encoded_password>@localhost/artifactory/repomirror/update/leap/$releasever/backports/
path=/
type=rpm-md
keeppackages=0

Note: If you have anonymous access enabled, you do not need to use the user credentials in the configuration


3. Run below commands to get latest metadata and verify that repository is listed

zypper ref
zypper lr


4. Install or update a sample package

zypper install pngcheck


User-added image

5. You will be able to find it cached in the remote repo cache.

User-added image

Finding alternate opensuse Repository URL


Certain countries impose restrictions on accessing default openSUSE URLs, which could result in redirection to a default mirror URL. In such scenarios, it is advisable to utilize the mirror URLs as your upstream URL in the remote repository to cache the packages. To locate openSUSE mirrors, please refer to the following resources here.

Sample mirrors: http://mirror.yandex.ru/opensuse/ , http://mirror.linux-ia64.org/opensuse/

References:
     1. https://jfrog.com/help/r/jfrog-artifactory-documentation/rpm-repositories
     2. https://download.opensuse.org/