Artifactory remote repositories support RPMs out-of-the-box, and there no need for any special configuration needed 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:
In the Administration module under Repositories | Repositories | Remote, click New Remote Repository to create a new remote repository.
Set the Repository Key value, and specify the URL to the remote repository in the URL field as displayed below.
Click Save & Finish.
Back in the Application | Artifactory | Artifacts module, in the Tree Browser, select the repository. Note that in the Tree Browser, the repository name is appended with
Click Set Me Up and copy the value of the
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
Next, create the
targetCentos.repofile and paste the following configuration into it:
[targetCentos] name=targetCentos baseurl=http://localhost:8081/artifactory/targetCentos/ enabled=1 gpgcheck=0