Note
These are not supported in the main repo, please raise issues in the kanidm/kanidm_ppa_automation repository, and understand that it is a community-supported effort, rather than by the core Kanidm project.
-
The Kanidm PPA repository contains Debian & Ubuntu packages built from the main Kanidm repository.
-
Two separate components are available,
stablefor released versions andnightlywhich only provides the latest bleeding edge, refreshed once a day. -
Packages are distributed for current LTS versions of Debian & Ubuntu that natively package the required dependencies;
- Ubuntu: 22.04 aka
jammy& 24.04 akanoble. - Debian 12 aka
bookworm.
- Ubuntu: 22.04 aka
-
Please note that while the spirit of the commands below should also work on other Debian-based distributions, the codename detection will not work and you will need to manually choose which distribution is the closest to yours. The methods for adding repositories may also vary, for example Pop OS, requires an altered setup in line with their instructions.
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/nullAdd 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.listUpdate your local package cache.
sudo apt updateUse apt search to list the packages available:
apt search kanidmIf 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
EOTIf anything goes wrong during the snippet, you may need to fall back to other methods of gaining root to complete the transition!