Installation instructions
Start using packagecloud in minutes
Join thousands of developers using packagecloud to distribute software securely, consistently, and affordably.
Bash Scripts
deb
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
...
rpm
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash
...
node
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.node.sh | bash
...
python
Are you using virtualenv?
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.python.sh | bash
...
gem
Are you using Bundler?
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.gem.sh | bash
...
Manual Installation
If you'd prefer to install your repo on your system manually, follow the instructions below.
deb
Begin by refreshing your package cache by running
sudo apt-get update
If you are running Debian, install debian-archive-keyring so that official Debian repositories will be verified (Ubuntu users can skip this)
sudo apt-get install debian-archive-keyring
Ensure the required tools (curl, gpg, apt-transport-https) are installed before proceeding:
sudo apt-get install curl gnupg apt-transport-https
In order to install a deb repo, first you need to install the GPG key that used to sign repository metadata. This will change depending on whether or not your apt version is >= v.1.1. You can check this by running:
apt -v
For apt version >= v1.1:
(Equivalent to or later than Debian/Raspbian Stretch, Ubuntu Xenial, Linux Mint Sarah, Elementary OS Loki)
Create the directory to import the GPG key:
From apt v2.4.0,
/etc/apt/keyrings/is the designated directory for administrator imported keys. We will be using that for the following instructions, but you can replace/etc/apt/keyrings/with any path of your choosing. If you need to create the directory, run:mkdir -p /etc/apt/keyrings/
Then add the GPG key:
curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg
Create a file named
/etc/apt/sources.list.d/github_git-lfs.listthat contains the repository configuration below.Make sure to replace ubuntu and trusty in the config below with your Linux distribution and version:
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/ubuntu trusty main deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/ubuntu trusty main
For apt version < v1.1:
(Equivalent to or older than Debian/Raspbian Jessie, Ubuntu Wily, Linux Mint Rosa, Elementary OS Freya)
Add the GPG key:
curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/trusted.gpg.d/github_git-lfs.gpg
Create a file named
/etc/apt/sources.list.d/github_git-lfs.listthat contains the repository configuration below.Make sure to replace ubuntu and trusty in the config below with your Linux distribution and version:
deb https://packagecloud.io/github/git-lfs/ubuntu trusty main deb-src https://packagecloud.io/github/git-lfs/ubuntu trusty main
Valid options for os and dist parameters can be found in our support OS list in the docs.
Run this command update your local APT cache:
sudo apt-get update
You can now install packages from your repository.
rpm
Install pygpgme, a package which allows yum to handle gpg signatures, and a package called yum-utils which contains the tools you need for installing source RPMs.
sudo yum install pygpgme yum-utils
Note: 'pygpgme' package installation is only required for RHEL versions earlier than 8 (< 8).
You may need to install the EPEL repository for your system to install these packages. If you do not install pygpgme, GPG verification will not work.
Create a file named /etc/yum.repos.d/github_git-lfs.repo that contains the repository configuration below.
Make sure to replace el and 6 in the config below with your Linux distribution and version:
[github_git-lfs] name=github_git-lfs baseurl=https://packagecloud.io/github/git-lfs/el/6/$basearch repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https://packagecloud.io/github/git-lfs/gpgkey sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 [github_git-lfs-source] name=github_git-lfs-source baseurl=https://packagecloud.io/github/git-lfs/el/6/SRPMS repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https://packagecloud.io/github/git-lfs/gpgkey sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300
Valid options for os