package-installation-docs/Debian.md

47 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

<!-- {% if not disable_header %} -->
# Installing <!-- {{ product }} --> on Debian
<!-- {% endif %} -->
The recommended way to install <!-- {{ product }} --> is to use prebuilt packages from our official release repository.
If the repository is not configured yet,
please [add](#adding-icinga-package-repository) it first
before [installing](#installing-the-package) the package.
All packages we provide are signed with the following [key](https://packages.icinga.com/icinga.key).
## Adding Icinga Package Repository
Heres how to add the official release repository:
```bash
2023-03-29 11:12:36 +02:00
apt update
apt -y install apt-transport-https wget
wget -O icinga-archive-keyring.deb "https://packages.icinga.com/icinga-archive-keyring_latest+debian$(
. /etc/os-release; echo "$VERSION_ID"
).deb"
apt install ./icinga-archive-keyring.deb
DIST=$(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release); \
echo "deb [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/debian icinga-${DIST} main" > \
/etc/apt/sources.list.d/${DIST}-icinga.list
echo "deb-src [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/debian icinga-${DIST} main" >> \
/etc/apt/sources.list.d/${DIST}-icinga.list
2023-03-29 11:12:36 +02:00
apt update
```
## Installing the Package
Use your distribution's package manager to install the `<!-- {{ package }} -->` package as follows:
```bash
2023-03-29 11:12:36 +02:00
apt install <!-- {{ package }} -->
```
<!-- {% if not raspberry_pi_os %} -->
<!-- {% set debian = True %} -->
<!-- {% endif %} -->
2022-10-26 12:09:43 +02:00
<!-- {% include "02-Installation.md" %} -->