2020-04-22 01:25:53 +02:00
|
|
|
|
|
|
|
.. _installation-apt-repos:
|
|
|
|
|
|
|
|
Debian / Ubuntu APT repositories
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
We maintain APT repositories for Debian, Ubuntu and derivatives.
|
|
|
|
The fingerprint of the signing key is ``E101 418F D3D6 FBCB 9D65 A62D 7086 99FC 5F2E BF16``.
|
|
|
|
It is available at `<https://zrepl.cschwarz.com/apt/apt-key.asc>`_ .
|
2020-09-02 21:34:52 +02:00
|
|
|
Please open an issue in on GitHub if you encounter any issues with the repository.
|
2020-04-22 01:25:53 +02:00
|
|
|
|
|
|
|
::
|
|
|
|
|
2021-12-12 13:00:34 +01:00
|
|
|
(
|
|
|
|
set -ex
|
|
|
|
zrepl_apt_key_url=https://zrepl.cschwarz.com/apt/apt-key.asc
|
|
|
|
zrepl_apt_key_dst=/usr/share/keyrings/zrepl.gpg
|
|
|
|
zrepl_apt_repo_file=/etc/apt/sources.list.d/zrepl.list
|
|
|
|
|
|
|
|
# Install dependencies for subsequent commands
|
|
|
|
sudo apt update && sudo apt install curl gnupg lsb-release
|
2020-04-22 01:25:53 +02:00
|
|
|
|
2021-12-12 13:00:34 +01:00
|
|
|
# Deploy the zrepl apt key.
|
|
|
|
curl -fsSL "$zrepl_apt_key_url" | tee | gpg --dearmor | sudo tee "$zrepl_apt_key_dst" > /dev/null
|
|
|
|
|
|
|
|
# Add the zrepl apt repo.
|
|
|
|
ARCH="$(dpkg --print-architecture)"
|
|
|
|
CODENAME="$(lsb_release -i -s | tr '[:upper:]' '[:lower:]') $(lsb_release -c -s | tr '[:upper:]' '[:lower:]')"
|
|
|
|
echo "Using Distro and Codename: $CODENAME"
|
2024-05-08 00:30:50 +02:00
|
|
|
echo "deb [arch=$ARCH signed-by=$zrepl_apt_key_dst] https://zrepl.cschwarz.com/apt/$CODENAME main" | sudo tee "$zrepl_apt_repo_file" > /dev/null
|
2021-12-12 13:00:34 +01:00
|
|
|
|
|
|
|
# Update apt repos.
|
|
|
|
sudo apt update
|
|
|
|
)
|
2020-04-22 01:25:53 +02:00
|
|
|
|
|
|
|
.. NOTE::
|
|
|
|
|
2020-09-02 21:34:52 +02:00
|
|
|
Until zrepl reaches 1.0, the repositories will be updated to the latest zrepl release immediately.
|
2020-04-22 01:25:53 +02:00
|
|
|
This includes breaking changes between zrepl versions.
|
|
|
|
Use ``apt-mark hold zrepl`` to prevent upgrades of zrepl.
|