======================================================================== Privex Inc. APT Package Repository Easy Install Script for both our package signing key, and our main universal repo --------------------------------------------------------------------------------- Our easy install script makes it painless to start using Privex's apt repo. It does the following, fully automatically: * Automatically uses either wget or curl depending on which are installed * Automatically installs curl if both wget and curl are missing * Downloads and installs our package signing key into /etc/apt/trusted.gpg.d/privex-packaging-2020.gpg * Adds our universal repository via the file /etc/apt/sources.list.d/privex.list * Installs our GPG keyring package 'privex-keyring' to ensure our GPG signing key is always kept up to date To use it, simply run one of the following: # If you have curl installed, then you can download and run it via curl curl -fsSL https://apt.privex.io/add-repo.sh | bash # If you have wget installed, then you can use wget instead wget -O - https://apt.privex.io/add-repo.sh | bash Available repositories ---------------------- # The universal repo is distro independent, it contains packages which should run on any distro. echo 'deb http://apt.privex.io universal main' | sudo tee -a /etc/apt/sources.list.d/privex.list How to import our package signing key ------------------------------------- >>>>> Option 1. - Download from our repository and add to apt-key <<<<< Our signing key is also available as a file on this HTTP(S) repository server, so you may download and import it from here. Using 'curl', you can download our maintainer key and pipe it straight into apt-key curl -fsSL https://apt.privex.io/maintainer.gpg | sudo apt-key add - Alternatively, you can download the file itself, and load that into apt-key wget -O privex.gpg https://apt.privex.io/maintainer.gpg sudo apt-key add privex.gpg >>>>> Option 2. - Download from a key server <<<<< If for some reason, it's not possible to download it from our server, you can also retrieve it from a GPG keyserver, then export it into apt-key You should first try and download our key via your system's default key servers: gpg --recv-keys A07AE80FE77AB97B If you see errors such as "No data received" or "General error", rather than "Imported: Privex Inc. Package Signing Key", then you may need to manually specify a working key server like so: gpg --keyserver 'hkps://keys.openpgp.org' --recv-keys A07AE80FE77AB97B Once you've successfully retrieved our key into your GPG keyring, you can then export it directly into apt-key: gpg -a --export A07AE80FE77AB97B | sudo apt-key add - General information about our package signing key ------------------------------------------------- Our maintainer GPG key info Name: Privex Inc. Package Signing Key Comment: Privex signing key for DEB / RPM / etc. packages, including apt.privex.io custom packages Email: packaging [at] privex.io Algorithm: RSA 4096-bit Issue date: 2020-11-06 Expires: 2022-11-06 Fingerprint: 3743 5560 EA6B 93F0 2B53 2F18 A07A E80F E77A B97B Short Key ID: E77AB97B Long Key ID: A07AE80FE77AB97B Privex APT Cache Server ======================= We operate an APT cache proxy which is intended for use by Privex customers in our various regions to speed up their package installations. The domain uses our nameservers' GeoDNS support so that your DNS server should return the closest IPv4/IPv6 addresses to your country. Currently, we run our cache in 3 countries: Sweden (10gbps), Germany (1gbps), and Finland (1gbps) They can be access directly via their respective subdomains: se1.apt-cache de1.apt-cache fin1.apt-cache Both apt-cache.privex.io and the country-code sub-domains support both HTTP and HTTPS, so you're free to use either one, depending on your preference and OS support. Examples for sources.list ------------------------- # For ubuntu 20.04 focal deb https://apt-cache.privex.io/ubuntu/ focal main multiverse restricted universe deb-src https://apt-cache.privex.io/ubuntu/ focal main multiverse restricted universe deb https://apt-cache.privex.io/ubuntu/ focal-backports main multiverse restricted universe deb-src https://apt-cache.privex.io/ubuntu/ focal-backports main multiverse restricted universe deb https://apt-cache.privex.io/ubuntu/ focal-security main multiverse restricted universe deb-src https://apt-cache.privex.io/ubuntu/ focal-security main multiverse restricted universe deb https://apt-cache.privex.io/ubuntu/ focal-updates main multiverse restricted universe deb-src https://apt-cache.privex.io/ubuntu/ focal-updates main multiverse restricted universe # For ubuntu 18.04 bionic deb https://apt-cache.privex.io/ubuntu/ bionic main multiverse restricted universe deb https://apt-cache.privex.io/ubuntu/ bionic-backports main multiverse restricted universe deb https://apt-cache.privex.io/ubuntu/ bionic-security main multiverse restricted universe deb https://apt-cache.privex.io/ubuntu/ bionic-updates main multiverse restricted universe # Our very own apt.privex.io repo deb https://apt-cache.privex.io/privex/ universal deb-src https://apt-cache.privex.io/privex/ universal # Debian 10 Buster deb https://apt-cache.privex.io/debian/ buster main contrib non-free deb-src https://apt-cache.privex.io/debian/ buster main contrib non-free deb https://apt-cache.privex.io/debian/ buster-backports main contrib non-free deb-src https://apt-cache.privex.io/debian/ buster-backports main contrib non-free deb https://apt-cache.privex.io/debian/ buster-updates main contrib non-free deb-src https://apt-cache.privex.io/debian/ buster-updates main contrib non-free deb https://apt-cache.privex.io/debian-security/ buster/updates main contrib non-free deb-src https://apt-cache.privex.io/debian-security/ buster/updates main contrib non-free # Debian 9 Jessie deb https://apt-cache.privex.io/debian/ jessie main contrib non-free # Ubuntu Ports (armhf / arm64 / others) deb [arch=armhf] http://apt-cache.privex.io/ubuntu-ports/ bionic main multiverse restricted universe deb [arch=arm64] http://apt-cache.privex.io/ubuntu-ports/ focal main multiverse restricted universe # For Docker ( Ubuntu 20.04 ) deb https://apt-cache.privex.io/docker/ubuntu/ focal edge # For Docker ( Ubuntu 18.04 ) deb https://apt-cache.privex.io/docker/ubuntu/ bionic edge # For Docker ( Debian 10 ) deb https://apt-cache.privex.io/docker/debian/ buster edge Using our cache as a proxy -------------------------- Our caching service can be used as a proxy for transparently caching all existing apt repositories in your sources.list(.d), though we generally recommend simply using the sources.list entries, as we operate a whitelist on our caching proxy to prevent it being used maliciously. echo 'Acquire::http::Proxy "http://apt-cache.privex.io:80";' | sudo tee -a /etc/apt/apt.conf.d/99privexproxy