stable
for released versions and nightly
which only
provides the latest bleeding edge, refreshed once a day.jammy
& 24.04 aka noble
.bookworm
.Make sure you have a “trusted GPG” directory for storing signing keys.
sudo mkdir -p /etc/apt/trusted.gpg.d/
Download the Kanidm PPA GPG public key.
curl -s "https://kanidm.github.io/kanidm_ppa/kanidm_ppa.asc" \
| sudo tee /etc/apt/trusted.gpg.d/kanidm_ppa.asc >/dev/null
Add the Kanidm PPA to your local APT configuration, with autodetection of Ubuntu vs. Debian.
Please adjust accordingly if you want the nightly
component instead of the default stable
.
curl -s "https://kanidm.github.io/kanidm_ppa/kanidm_ppa.list" \
| grep $( ( . /etc/os-release && echo $VERSION_CODENAME) ) | grep stable \
| sudo tee /etc/apt/sources.list.d/kanidm_ppa.list
Update your local package cache.
sudo apt update
Use apt search
to list the packages available:
apt search kanidm
If you previously had the alpha version kanidm nightly packages installed or are switching from nightly down to stable, it may be difficult to remove the previous versions safely without losing for example Kanidm backed sudo in the middle. This snippet is intended to help with that:
sudo bash <<EOT
dpkg --remove kanidm kanidm-unixd libnss-kanidm libpam-kanidm
apt install -y kanidm kanidm-unixd
EOT
If anything goes wrong during the snippet, you may need to fall back to other methods of gaining root to complete the transition!