How to set RPM repositories in JFrog Artifactory? [Video]

Lawrence Fung
2021-02-02 14:45

This video goes over how to utilize the “set me up” interface to quickly start using a rpm virtual repository. It demonstrates how to configure the yum client to start resolving rpm packages from Artifactory and how to deploy them using a REST API command.


Video Transcription

Hi, this is Lawrence from JFrog support. Today, we’ll be going over RPM repositories. A RPM virtual repository can be used to aggregate multiple repositories. This is useful when you need a single URL to reference multiple repositories. If you view the repository settings and click virtual, you will see a list of repositories aggregated inside the virtual. In this example, we have the RPM local and the RPM remote inside the RPM virtual repository.

To start using the RPM virtual repository, you can click the repository inside the artifact’s browser, and then clicking the send me up button in the top right corner. Here you will be asked to provide a password. You will also see instructions on how to configure the young client to use the virtual repository. There will be a short snippet that you can copy inside the configuration file. You also need to specify the path to repo data folder inside the base URL. For this example, we will be using the repo data found in the remote repository.

Here you can see the repo data folder. We will need to copy of the path to this repo data folder. Once this is configured, you will be able to resolve packages from the virtual repository, using a yum installed command. To deploy RPM packages to the virtual repository, you can go through the set me up instructions again. Here you can see a creo command you can use to deploy RPM packages. In this example, I will be deploying a Python RPM package. You will need to specify the target file path and the path to the metadata base. Here we can see that the package was successfully deployed.

That was my video on RPM repositories. Thanks for watching and I hope you find this helpful. Feel free to leave your comments, feedback, and questions in the comments section below.