Guide-Apt

Introduction

This guide will walk you through the process of uploading your DEB packages to Gemfury, and then securely installing them. Before you get started, be sure you have the following: Gemfury account AptCLI with HTTPS transport To install HTTPS transport on a system with AptCLI, run the following commands: apt-get update apt-get install apt-transport-https ca-certificates

Configure APT for your repository

You can configure APT to use your Gemfury repository. To start, 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 https://apt.fury.io/USERNAME/ * * Or run this “one-liner”: $ echo "deb https://apt.fury.io/USERNAME/ * *" > \ /etc/apt/sources.list.d/fury.list Your repository is signed with Gemfury’s GPG key, which you will have to add to your system’s list of trusted keys: 

Install DEB packages with APT

Once you’ve configured for your repository, download and update the indexes of packages by running the following command. Run this 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 package-in-gemfury ... The following NEW packages will be installed: package-in-gemfury ... Setting up package-in-gemfury (0.1.0) ... apt is the newer CLI for accessing APT functions in Debian-based packages.