Skip to content

Installation

Efkan edited this page Dec 3, 2026 · 13 revisions

Installation

capsule is one static program with no dependencies of its own. It runs on Linux; see Supported Systems for the distributions it is tested on.

From a release

Download the archive for your machine from the latest release: amd64 for x86-64 (uname -m prints x86_64), arm64 for aarch64.

tar xzf capsule-0.14.0-linux-amd64.tar.gz
cd capsule-0.14.0-linux-amd64
sudo sh dist/install.sh capsule
capsule version

Check the download against SHA256SUMS from the same release first:

sha256sum -c SHA256SUMS --ignore-missing

From source

You need Go 1.26 or newer. The build machine does not have to be the host.

git clone https://github.com/efops/capsule && cd capsule
make linux
sudo sh dist/install.sh bin/capsule-linux-amd64     # or bin/capsule-linux-arm64

What the installer does

Step Where
Installs the program /usr/local/bin/capsule
Creates the settings and data folders /etc/capsule/, /var/lib/capsule/
Installs the systemd units (or the OpenRC script on hosts without systemd) /etc/systemd/system/, /etc/init.d/capsule
Creates the capsule group and turns on the helper's socket /run/capsule-helper.sock
Loads the AppArmor profile where it is needed /etc/apparmor.d/capsule

It changes nothing else and is safe to run again to upgrade. sudo sh dist/uninstall.sh removes it.

What the host needs

Need Check
Linux kernel 5.11 or newer uname -r
cgroup v2 stat -fc %T /sys/fs/cgroup prints cgroup2fs
systemd, for every feature; or OpenRC, for running capsules as root systemctl --version

Some features need a package or two (WireGuard tools, cryptsetup, e2fsprogs). The exact install line for each distribution is on Supported Systems.

Next: Quick Start. The full version of this page is docs/INSTALL.md.

Clone this wiki locally