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 file, you can use the Dashboard, command line, 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://SeCrEt-ToKeN@yum.fury.io/me/

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://SeCrEt-ToKeN@yum.fury.io/me/
enabled=1
gpgcheck=0

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