Skip to main content

Installation

Kubri offers many installation methods. Check out the available methods below.

Package Managers

Homebrew

brew install kubri/tap/kubri

APT

curl -fsSL https://pkg.kubri.dev/deb/key.asc | gpg --dearmor | sudo tee /usr/share/keyrings/kubri.gpg
echo 'deb [signed-by=/usr/share/keyrings/kubri.gpg] https://pkg.kubri.dev/deb/ stable main' | sudo tee /etc/apt/sources.list.d/kubri.list
sudo apt update
sudo apt install kubri

YUM / DNF

echo '[kubri]
name=Kubri
baseurl=https://pkg.kubri.dev/rpm/
enabled=1
gpgcheck=0
repo_gpgcheck=1
gpgkey=https://pkg.kubri.dev/rpm/repodata/repomd.xml.key' | sudo tee /etc/yum.repos.d/kubri.repo

# yum
sudo yum install kubri

# dnf
sudo dnf install kubri

Zypper

sudo zypper addrepo "https://pkg.kubri.dev/rpm/" kubri
sudo zypper --gpg-auto-import-keys refresh
sudo zypper install kubri

APK

curl -fsSL -o /etc/apk/keys/[email protected] https://pkg.kubri.dev/alpine/[email protected]
echo 'https://pkg.kubri.dev/alpine' >> /etc/apk/repositories
apk add kubri

Winget

winget install Kubri.Kubri

Docker

Run Kubri from docker.

docker run --rm -v $(pwd):/app -w /app kubri/kubri:latest kubri <command>

If signing releases you will also need to pass in your keys.
See the following example for passing in keys via an environment variable.

docker run --rm -v $(pwd):/app -w /app \
-e KUBRI_PGP_KEY="$(cat /path/to/pgp.key)" \
-e KUBRI_RSA_KEY="$(cat /path/to/rsa.key)" \
-e KUBRI_ED25519_KEY="$(cat /path/to/ed25519.key)" \
-e KUBRI_DSA_KEY="$(cat /path/to/dsa.key)" \
kubri/kubri:latest kubri build

Alternatively you can also use a volume to persist the keys.

# import keys
docker run --rm -v $(pwd):/app -w /app -v ~/.config/kubri -v path/to/pgp.key:/pgp.key kubri/kubri:latest kubri keys import pgp /pgp.key
docker run --rm -v $(pwd):/app -w /app -v ~/.config/kubri -v path/to/rsa.key:/rsa.key kubri/kubri:latest kubri keys import rsa /rsa.key

# build
docker run --rm -v $(pwd):/app -v ~/.config/kubri -w /app kubri/kubri:latest kubri build

Binary

Download the latest binary from https://github.com/kubri/kubri/releases and copy it to a folder in your $PATH.

Build From Source

go install github.com/kubri/kubri@latest