Installation (source code tarball)

Change to the directory where source code tarball has been saved in and unpack it as follows:

tar xzvf KeePassX-{version}.tar.gz

Change location into the created directory:

cd keepassx-{version}

Depending on your Linux distribution, execute ‘qmake-qt4’ or ‘qmake’.

qmake-qt4 / qmake

Under Unix/X11 the project is configured to install KeePassX in ‘/usr/local’. A different installation directory can be specified by passing a parameter ‘PREFIX’ to ‘qmake’, e.g.:

qmake PREFIX=/{install-directory}

To start the compiling process run ‘make’


Now, to install KeePassX on your system execute the following command:

make install

In case you are not signed in as root or if you do not have access rights to the installation directory, then you have to execute the previos command with root access rights

sudo make install

33 Responses to “Installation (source code tarball)”

  1. Beljoost says:

    # I had to do the following to install 0.3.4 on Ubuntu 7.10

    tar xzvf KeePassX-0.3.4.tar.gz
    cd keepassx-0.3.4

    sudo apt-get install qt4-dev-tools qt4-designer
    sudo apt-get install g++
    sudo apt-get install libxtst-dev


    sudo make install
    sudo chmod -R 777 /usr/share/keepassx

  2. deep.thought says:

    Thanks, that worked perfect. I guess we must remember to make certain dependencies are filled…

  3. eric says:

    Why does everyone hate CentOS?

    I cant seem to find any compatible software for it. I guess I will have to switch to ubuntu or red hat

  4. saivert says:

    Please provide build instructions for Mac OS X Snow Leopard.

    I get this when running qmake (downloaded latest Qt libs from Nokia):

    Project MESSAGE: See ‘INSTALL’ for configuration options.
    Project MESSAGE: Install Prefix: /usr
    Project MESSAGE: *** Makefile successfully generated.
    Project MESSAGE: *** Start make now.
    WARNING: Ignored (not found) ‘/private/var/root/code/keepassx-0.4.1/src/../bin/KeePassX.xcodeproj’

  5. Just completed a KeePassX install on Ubuntu 9.10, Karmic Koala:

    sudo apt-get install build-essential
    sudo apt-get install libqt4-dev
    sudo apt-get install xorg-dev

    In downloaded/extracted KeePassX directory:
    sudo make install

  6. Ihmemies says:

    Anyone porting to the new Nokia N900 running Maemo? I would love to have this program in my pocket! 🙂

    Pretty please with cherry on top…

  7. Rickard says: .. checkinstall debian/lenny package which i made. Enjoy