How-To: Install KeePass on Fedora 20

KeePass is a “password safe”, allowing you to securely store passwords for websites, computer user accounts, and any other type of system you need to store a password for.  The important thing is to remember your master password, the one that is used to encrypt the KeePass database, so you can access the rest of your passwords stored using KeePass.

To install KeePass on Fedora 20 you can install the version included in the default fedora repository (sudo yum install keepassx).  Unfortunately,  this is an old version and doesn’t support the newest KeePass database types, nor does it support some of the newer features.  To install newest version there’s a bit more work to be done.

UPDATE (2014/07/29): As of 2014/05/23, the newest version of KeePass, 2.x, is now in the Fedora repository.  To install it, just run ‘sudo yum install keepass’ or ‘sudo dnf install keepass’.  This method makes it easier to keep KeePass up to date as anytime it is updated in the repository you can use yum or dnf to update it.  However, it might take a bit more time for the updated version to be added to the repository compared to when the updated version is available for download on the KeePass website.


  2. Wrapping Up
  3. References


Note: These directions are based on the directions provided in this thread.  I making this post for my own records and due to the fact that I varied slightly from the directions in the thread.

  1. Install Mono
    $ sudo yum install -y mono-core mono-devel
  2. Download KeePass Professional Edition, portable (ZIP package)
  3. Create KeePass Application Directory
    $ sudo mkdir /usr/bin/KeePass
  4. Unzip (extract) Downloaded KeePass Package
    $ sudo unzip /path/to/ -d /usr/bin/KeePass/
  5. Download KeePass Source Code for the Version of KeePass you Previously Downloaded
    • Look towards bottom of the downloads page, under “Other Downloads and Resources”
    • At time of this writing, this link is the most up to date source code (version 2.25)
  6. Unzip (extract) Downloaded KeePass Source Code Package
    • Change to directory where you downloaded the source code
      $ cd ~/Downloads/
    • Create directory to hold the unzipped source code
      $ mkdir KeePass-Source
    • Unzip the source code
      $ unzip -d KeePass-Source
  7. Copy KeePass icon to your KeePass application directory (/usr/bin/KeePass)
    $ sudo cp KeePass-Source/Ext/Icons/Finals/plock-blu.png /usr/bin/KeePass/KeePass_icon.png
  8. Create the File “/usr/share/applications/KeePass.desktop” and Add the Following Content:
    [Desktop Entry]
    GenericName=Password Database
    Comment=Store you passwords in an encrypted database
    Exec=mono /usr/bin/KeePass/KeePass.exe

Wrapping Up

At this point you should be able to find KeePass in the list of applications installed on your system.  If you would like to use a different icon for KeePass, then at step number 7 copy that icon to /usr/bin/KeePass/KeePass_icon.png (or whatever extension the icon is).  You can find more official KeePass icons in the “KeePass-Source/Ext/Icons/Finals/” directory in step number 7.



4 Replies to “How-To: Install KeePass on Fedora 20”

  1. Thanks. I moved from Ubuntu to Fedora 20 last night and your instructions are perfect to a “t”. Not certain what I would have done without Keepass, but your great instruction took care of that worry. Thannks again.

  2. Thanks for the info. Just to note that KeePassX is not an old project, it is a cross platform clone of KeePass that started as a Linux clone of KeePass when KeePass couldn’t run on Linux. Since then, both programs went cross platform, but are both alive as far as I know.

    The latest KeePassX beta has support for the newer database format.

Leave a Reply

Your email address will not be published. Required fields are marked *