Skip to content

gvtulder/vaultwarden-deb

Repository files navigation

Vaultwarden deb packages

This repository contains deb packages of Vaultwarden, a Bitwarden-compatible API server written in Rust. They can be installed in Debian or Ubuntu.

The files in these packages are extracted from the most recent Docker releases of the upstream Vaultwarden repository. The binary is statically linked, so it should run on many amd64 systems.

See the Vaultwarden repository for much more information.

Contents

The repository provides two packages:

Use apt-get install vaultwarden to install both.

Installation

To install Vaultwarden and add this repository, run this for Debian 12 (bookworm):

wget -qO- https://vaultwarden-deb.pages.dev/dists/bookworm/install.sh | sudo bash
sudo apt update
sudo apt install vaultwarden

For Debian 11 (bullseye):

wget -qO- https://vaultwarden-deb.pages.dev/dists/bullseye/install.sh | sudo bash
sudo apt update
sudo apt install vaultwarden

For Debian 10 (buster):

wget -qO- https://vaultwarden-deb.pages.dev/dists/buster/install.sh | sudo bash
sudo apt update
sudo apt install vaultwarden

The packages can also be downloaded manually from the repository web page.

Important configuration

After installation, Vaultwarden needs to be configured. Edit the configuration file at /etc/vaultwarden.env to change important settings, such as the port number, the database, and security options.

Vaultwarden is added to systemd and can be started and stopped with:

sudo systemctl status vaultwarden
# to start and stop
sudo systemctl start vaultwarden
sudo systemctl stop vaultwarden
# to start on boot
sudo systemctl enable vaultwarden

Directories

The packages add the following files:

  • /etc/vaultwarden.env: the configuration file.
  • /usr/bin/vaultwarden: the Vaultwarden server.
  • /var/lib/vaultwarden/data: the data directory.
  • /var/lib/vaultwarden/web-vault: the files for the Bitwarden web vault.
  • /var/log/vaultwarden: the log file.