Configure the openSUSE repository mirror

ARTIFACTORY: How to proxy an openSUSE repository

AuthorFullName__c
Shisiya Sebastian
articleNumber
000005830
ft:sourceType
Salesforce
FirstPublishedDate
2023-07-20T17:26:08Z
lastModifiedDate
2023-07-20
VersionNumber
1
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