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:
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
directory. You will need
sudo access to make these changes.
Here is a basic template for
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
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
Keeping your credentials separate & secure
Although the method described above is the simplest, we strongly recommend that you separate the secret tokens so you can restrict access to that sensitive information.
APT has support for specifying authentication credentials in a separate file outside of
sources.list by using a
/etc/apt/auth.conf file or a
.conf file inside
/etc/apt/auth.conf.d. Learn more about this feature here.
machine apt.fury.io login TOKEN password NOPASS
With this, you can install private packages as you normally would using APT.
Requires APT version 0.7.25 or later. Also, please note that APT will ignore
auth.conf config entirely if the password is omitted or left blank. Please use the keyword
NOPASS in the password field to authenticate properly with Gemfury.