Running KeePass 2.x on OSX using macpack

Written by Brett Veenstra

Last year, I finally declared password bankruptcy and found a password manager that:

  • would integrate with FireFox, or at least import existing passwords
  • is open source (security programs that cannot demonstrate how they are safeguarding your info should not be trusted)
  • is cross-platform capable (WinXP, Win7, OSX, Linux)

Fortunately, I found KeePass. It can run using Mono under OSX, but it can be a hassle to run. The default way of doing that is:

  • Open Terminal and navigate to KeePass directory
  • Typing: mono KeePass.exe

We can do this:

  • Install Mono Framework
  • Download latest version of KeePass 2.x and unpack it
  • Open Terminal and navigate to unpacked KeePass folder
  • Run the following command:
    macpack -o:. -m:winforms -r:/Library/Frameworks/Mono.framework/Versions/Current/lib/ libCocoaSharpGlue.dylib -r:KeePass.chm -r:KeePass.XmlSerializers.dll -r:KeePassLibC32.dll -r:KeePassLibC64.dll -r:License.txt -r:ShinstUtil.exe -r:./XSL -n:KeePass -a:KeePass.exe

This will create a file that you can drag into your \Applications folder, and you should be all set.