-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Set up Build Environment on Linux
Sami Vänttinen edited this page May 20, 2026
·
56 revisions
Note: This is only a one-time setup guide. For actually building KeePassXC, please refer to our build guide.
You can skip this step if you have a working C++ toolchain (g++, cmake and make)
On Debian/Ubuntu:
sudo apt install build-essential cmake g++ asciidoctorOn Fedora/RHEL/CentOS:
sudo dnf install make automake gcc-c++ cmake rubygem-asciidoctor On Arch Linux:
sudo pacman -S cmake make gcc asciidoctoror
sudo pacman -S cmake make gcc-multilib asciidoctorOn Debian/Ubuntu:
sudo apt install qt6-base-dev qt6-svg-dev qt6-tools-dev libusb-1.0-0-dev \
libbotan-3-dev zlib1g-dev libminizip-dev libpcsclite-dev libkeyutils-dev \
libxi-dev libxtst-dev libqrencode-devOn Ubuntu 22 LTS (Jammy), make sure these are installed:
sudo apt install libbotan-2-dev qt6-base-dev qt6-base-private-dev qt6-tools-dev \
qt6-base-dev-tools qt6-tools-dev-tools qt6-l10n-tools libqt6svg6-dev \
libreadline-devOn Fedora/RHEL/CentOS:
sudo dnf install qt6-qtbase-devel qt6-qtsvg-devel qt6-qttools-devel botan3-devel \
minizip-compat-devel pcsc-lite-devel libusb1-devel keyutils-libs-devel libXi-devel \
libXtst-devel qrencode-develCentOS requires more up-to-date packages, provided here: https://copr.fedorainfracloud.org/coprs/bugzy/keepassxc/
On Arch Linux:
sudo pacman -S qt6-base qt6-tools qt6-svg argon2 botan qrencode zlib readline \
keyutils pcsclite libusb libxi libxtst minizipOn Debian/Ubuntu:
sudo apt-get update && sudo apt-get upgradeOn Fedora/RHEL/CentOS:
sudo dnf update && sudo dnf upgradeOn Arch Linux:
sudo pacman -SyyuuCopyright (C) 2016-2026 KeePassXC Team