Repository navigation
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.
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 versionCheck the download against SHA256SUMS from the same release first:
sha256sum -c SHA256SUMS --ignore-missingYou 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| 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.
| 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.
capsule is source-available under the Functional Source License 1.1 (Apache 2.0 after two years). This wiki describes release 0.16.0; the documentation in the repository is the reference for each version.
capsule
In the repository