Open keepassx files

What todo if you want to open keepassx file (database.kdbx) with keepassx version 0.4.3? It does not really work. If you installed your keepassx through a package maanger, it is not possible to get a new keepassversion to open kdbx files. Because it is only possible with keepassx greater than 2.0. On a Windows-System it is quite easy, you just download the newest executable from the project website, but what to do if you are on a unix system?!

The fastest and maybe easiest way is to build it on your own from source.

The following steps describe what I’ve done to build keepassx 2.0 alpha 6 and how I open new kdbx and old kdb databases.

  1. install required dependencies if not already installed

    sudo apt-get install git linux-headers-$(uname -r) build-essential cmake libqt4-dev libgcrypt20-dev libxtst-dev zlib1g-dev
    

  2. download source from github

    mkdir build
    cd build
    git clone https://github.com/keepassx/keepassx.git
    

  3. change directory and build new keepassx

    cd keepassx
    export QT_SELECT=qt4
    cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release
    make -j2
    

  4. install it

    sudo make install
    

  5. start keepassx to open kdbx databases

    /usr/local/bin/keepassx
    

  6. start keepassx to open kdb databases

    /usr/bin/keepassx
    

comments powered by Disqus