This repository contains the necessary files for building Debian binary packages of KeePassXC.
KeePassXC has been officially packaged and is part of Debian for quite some time now and thus this repository will stop receiving further updates. If you are running Testing (Buster) or Unstable (Sid), you can install KeePassXC by simply running sudo apt install keepassxc
. If you are on Stretch which is the current Stable, you can install it from stretch-backports
by running sudo apt install -t stretch-backports keepassxc
. Make sure that the backports repository is enabled in your system before doing so.
The developers of KeePassXC now provide an official PPA for installing KeePassXC on Ubuntu! If you are an Ubuntu user I highly recommend switching to the PPA, so you will automatically receive updates every time there is a new version. The Ubuntu releases that are currently supported by the PPA are the 17.10, 17.04, 16.04 and 14.04.
Starting from the next upstream release, I will also stop providing binary packages for Ubuntu on this repository, to encourage the adoption of the official PPA. If you disagree with that decision though please open a new issue explaining your reasons.
First make sure that all four build-essential
, debootstrap
, devscripts
and pbuilder
packages are installed on your system, as they contain the necessary tools for building the package.
sudo apt-get update
sudo apt-get install build-essential debootstrap devscripts pbuilder
After the installation is complete you will need to configure pbuilder
. To do so, you will first need to set the /var/cache/pbuilder/result
directory writable by your user account and then create the directory /var/cache/pbuilder/hooks
, which again needs to be writable by your user.
sudo chown <user>:<user> /var/cache/pbuilder/result
sudo mkdir /var/cache/pbuilder/hooks
sudo chown <user>:<user> /var/cache/pbuilder/hooks
Next, using your favorite text editor add the following lines in either your /etc/pbuilderrc
or ~/.pbuilderrc
after creating it.
AUTO_DEBSIGN=${AUTO_DEBSIGN:-no}
HOOKDIR=/var/cache/pbuilder/hooks
Finally, create a file named B90lintian
inside your /var/cache/pbuilder/hooks
directory with the following contents,
#!/bin/sh
set -e
install_packages() {
apt-get -y --force-yes install "$@"
}
install_packages lintian
echo "+++ lintian output +++"
su -c "lintian -i -I --show-overrides /tmp/buildd/*.changes" - pbuilder
# use this version if you don't want lintian to fail the build
#su -c "lintian -i -I --show-overrides /tmp/buildd/*.changes; :" - pbuilder
echo "+++ end of lintian output +++"
and make it executable,
chmod +x `/var/cache/pbuilder/hooks`
First, obtain a fresh copy of the source package using git clone
.
git clone https://github.com/magkopian/keepassxc-debian.git
Next, cd
into the keepassxc-debian
directory and using the pbuilder
program create a chroot
environment of the target Debian release (e.g. unstable) that you want to build the package for.
cd keepassxc-debian
sudo pbuilder create --distribution <debian-release>
sudo pbuilder --update --distribution <debian-release>
Finally, using the dsc
file build the package in the chroot
environment you just created.
sudo pbuilder --build keepassxc_<version>.dsc
The newly built package will be located inside the /var/cache/pbuilder/result
directory, owned by your user account.
If you make changes to the package sources instead of using the previous pbuilder
command for building the package, you will need to run pdebuild
from the keepassxc-<version>
directory.
cd keepassxc-<version>
pdebuild
The pdebuild
program will generate the source package using the updated sources and also build the binary package for you.