Installing private RPM packages with YUM

Once you have signed up for a Gemfury account, you can upload RPM packages, and install them onto your system with YUM.

Uploading packages

There are a few guides on the web about creating an RPM package. Once you have the package file, you can use the Dashboard, the Gemfury CLI, or cURL to upload the RPM package to your Gemfury account.

Your secret Repository URL

The secret repository URL is the YUM endpoint for your Gemfury account and packages. Do not share this URL to keep your account private. Your Repo-URL has the following format:

https://TOKEN@yum.fury.io/USERNAME/

Setting up YUM for Gemfury

To install your packages, you'll need to configure YUM to access your Gemfury repository.

For this, create a fury.repo file in the /etc/yum.repos.d directory. You will need sudo access to make these changes.

Here is a basic template for /etc/yum.repos.d/fury.repo:

[fury]
name=Gemfury Private Repo
baseurl=https://TOKEN@yum.fury.io/USERNAME/
enabled=1
gpgcheck=0

At the moment, Gemfury does not support GPG-signed metadata. The gpgcheck=0 parameter is important to tell YUM to trust this repo without a signature. We will update this help page once GPG support is available.

Using YUM with Gemfury

To check whether everything is configured correctly, run the following command to get a list of packages in your Gemfury account:

$ yum --disablerepo=* --enablerepo=fury list available
...
Available Packages
rubygem-gemfury.noarch               0.4.14.fc18                            fury

Once this is in place, you can use YUM and all related tools to install your private packages:

$ yum install rubygem-gemfury