Introduction to GPGME

The GPGME package is a C library that allows cryptography support to be added to a program. It is designed to make access to public key crypto engines like GnuPG or GpgSM easier for applications. GPGME provides a high-level crypto API for encryption, decryption, signing, signature verification and key management.

This package is known to build and work properly using an LFS-9.0 platform.

Package Information

GPGME Dependencies




Doxygen-1.8.16 and Graphviz-2.40.1 (for API documentation), GnuPG-2.2.17 (required if Qt or SWIG are installed; used during the testsuite), Clisp-2.49, Python-2.7.16, Qt-5.13.0, and/or SWIG-4.0.0 (for language bindings)

User Notes:

Installation of GPGME

Install GPGME by running the following commands:

./configure --prefix=/usr --disable-gpg-test &&

To test the results, you should have GnuPG-2.2.17 installed and remove the --disable-gpg-test above. Issue: make check.

Now, as the root user:

make install

Command Explanations

--disable-gpg-test: if this parameter is not passed to configure, the test programs are built during make stage, which requires GnuPG-2.2.17. This parameter is not needed if GnuPG-2.2.17 is installed.


Installed Program: gpgme-config, gpgme-json, and gpgme-tool
Installed Libraries: libgpgme,, and
Installed Directory: /usr/include/{gpgme++,qgpgme,QGpgME}, /usr/lib/cmake/{Gpgmepp,QGpgme}. /usr/lib/python{2.7,3.7}/site-packages/gpg, and /usr/share/common-lisp/source/gpgme

Short Descriptions


is used to obtain GPGME compilation and linking information.


outputs GPGME commands in JSON format.


prints fingerprint and keyid with keyservers.

contains the GPGME API functions.

contains the C++ GPGME API functions.

contains API functions for handling GPG operations in Qt applications.

Last updated on 2019-08-18 18:01:59 -0700