RPM Remote Repositories

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Artifactory remote repositories support RPMs out of the box, and there is no need for any special configuration in order to work with RPMs in a remote repository.

All you need to do is point your YUM client at the remote repository, and you are ready to use YUM with Artifactory.

To define a remote repository to proxy an RPM remote repository, follow the steps below:

  1. In the Administration module under Repositories | Repositories | Remote, click New Remote Repository to create a new remote repository.

  2. Set the Repository Key, and specify the URL to the remote registry in the URL field. When using a Yum client, use the URL of the folder containing your /repodata folder- for example, http://mirror.centos.org/centos/7/os/x86_64/.

    Note

    Running docker pull centos:latest will return CentOS 8, which has reached End of Life. To use CentOS, pull a supported version: for a list of supported versions, see CentOS Mirror. If you need to use CentOS 8, you can do so by changing the URL in the URL field to https://vault.centos.org/.

  3. Click Save & Finish.

  4. Back in the Platform | Artifactory | Artifacts module, in the Tree Browser, select the repository. Note that in the Tree Browser, the repository name is appended with -cache.

  5. Click Set Me Up and copy the value of the baseurl tag.

    Note

    For CentOS 8 users, edit or create the following files with root privileges:

    • sudo vi /etc/yum.repos.d/CentOS-Linux-AppStream.repo

    • sudo vi /etc/yum.repos.d/CentOS-Linux-BaseOS.repo

  6. Next, create the /etc/yum.repos.d/ targetCentos.repo file and paste the following configuration into it:

    [targetCentos]
    name=targetCentos
    baseurl=http://localhost:8081/artifactory/targetCentos/
    enabled=1
    gpgcheck=0