Installing private DEB packages with APT

Once you have signed up for a Gemfury account, you can upload DEB packages, and install them onto your host with APT.

Uploading packages

There are a few guides on the web about creating a Debian “DEB” 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 APT 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@apt.fury.io/USERNAME/

Setting up APT with Gemfury

To install your packages, you’ll need to configure APT to access your Gemfury repository.

For this, create a fury.list file in the /etc/apt/sources.list.d directory. You will need sudo access to make these changes.

Here is a basic template for /etc/apt/sources.list.d/fury.list:

deb [trusted=yes] https://TOKEN@apt.fury.io/USERNAME/ /

Or use this “one-liner”:

echo "deb [trusted=yes] https://TOKEN@apt.fury.io/USERNAME/ /" > \
/etc/apt/sources.list.d/fury.list

At the moment, Gemfury does not support GPG-signed Release file. The [trusted=yes] parameter is important to tell APT to trust this repo without a signature. We will update this help page once GPG support is available.

Using APT with Gemfury

To download and update the indexes of packages, please run the following commands now and every time you add a new package:

$ sudo apt update

Once this has succeeded, you can use apt and all related tools to install your private packages:

$ sudo apt install private-package-in-gemfury
...
The following NEW packages will be installed:
  private-package-in-gemfury
...
Setting up private-package-in-gemfury (0.1.0) ...

apt is the newer CLI for accessing APT functions in Debian-based packages. If you prefer or in older versions, you may use apt-get instead.