Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


divecmd drives libdivecomputer to extract the contents of your dive computer in a safe, simple manner. It has several programs:

For interoperability with Subsurface, it features:

It compiles and runs on Linux, Mac OS X, and OpenBSD. For Mac OS X machines with homebrew, see's homebrew-repo.

There are also some supporting utilities:

  • dcmd2pdf(1), which manages a groff(1) toolchain into PDF;
  • dcmd2ps(1), which does the same but for PS (Mac OS X's groff(1) doesn't have PDF support); and

I forked libdivecomputer's dctool to write dcmd(1) --- originally to provide output like Subsurface's XML format, but later to significantly simplify the code, to add sandboxing via pledge(2), and to provide multiple front-ends.

If you have a feature in mind, I'm very happy to be encouraged to implement it with new dive computers, gear, or a place to dive...


To install divecmd, you need a recent version of libdivecomputer and libexpat (the latter is installed by default on most modern UNIX machines). You'll probably also want groff(1) and grap(1). Note: if you're running Mac OS X, your version of groff(1) doesn't support PDF output.

Just run the following:

sudo make install

Or if you're on OpenBSD, use doas instead of sudo. That's it!

You'll probably need to provide paths to the third-party libdivecomputer installation, however. To do so, just add a file configure.local that includes the LDFLAGS and CPPFLAGS set to the appropriate paths. It will be automatically picked up when you run configure. Alternatively, you can pas the LDFLAGS and CPPFLAGS variables to the configure script.

Note: this is a shell script, not a Makefile component, so no spaces around the equal sign.


The sources use the LGPL as printed in the file. Why not the usual ISC license? Because this tool began as a fork of LGPL'd software.

You can’t perform that action at this time.