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 private Repository URL
The private 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://USER:TOKEN@yum.fury.io/ACCOUNT/
Setting up YUM for Gemfury
To install your packages, you’ll need to configure YUM to access your Gemfury
repository. You will need sudo access to make these changes.
Create a fury.repo file in the /etc/yum.repos.d directory.
Here is a basic template for /etc/yum.repos.d/fury.repo:
[fury]
name=Gemfury Private Repo
baseurl=https://USER:TOKEN@yum.fury.io/ACCOUNT/
enabled=1
gpgcheck=0
GPG signing
Gemfury supports GPG signing of repository metadata. GPG signing is disabled by default, so you will first need to generate or upload a GPG key to enable it for your account.
Once enabled, import the public GPG key for your repository:
sudo rpm --import https://USER:TOKEN@yum.fury.io/ACCOUNT/gpg.key
Then update your /etc/yum.repos.d/fury.repo to enable repo_gpgcheck:
[fury]
name=Gemfury Private Repo
baseurl=https://USER:TOKEN@yum.fury.io/ACCOUNT/
enabled=1
gpgcheck=0
repo_gpgcheck=1
gpgkey=https://USER:TOKEN@yum.fury.io/ACCOUNT/gpg.key
If you also enable gpgcheck=1, YUM will verify the signature of each
RPM package on install. This requires that all uploaded RPM files are
signed with the same GPG key.
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