GnuPG の概要

The GnuPG package is GNU's tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC2440 and the S/MIME standard as described by several RFCs. GnuPG 2 is the stable version of GnuPG integrating support for OpenPGP and S/MIME.

本パッケージは LFS-8.3 において正しくビルドでき動作することが確認されています。


  • ダウンロード (HTTP):

  • ダウンロード MD5 sum: 3ae8bd6246367602e72571f7a6588bcd

  • ダウンロードサイズ: 6.4 MB

  • 必要ディスク容量: 108 MB (with all tests; add 24 MB for docs)

  • 概算ビルド時間: 0.3 SBU (using parallelism=4; add 0.4 SBU for tests)

GnuPG 2 の依存パッケージ


Libassuan-2.5.1, libgcrypt-1.8.3, libgpg-error-1.32, Libksba-1.3.5, npth-1.6



cURL-7.61.0, GnuTLS-3.5.19, ImageMagick-7.0.8-10 (for the convert utility, used for generating the documentation), libusb-compat-0.1.5, an MTA, OpenLDAP-2.4.46, SQLite-3.24.0, texlive-20180414 (or install-tl-unx), fig2dev (for generating documentation), and GNU adns


GnuPG のインストール



If you are upgrading from gnupg prior to version 2.1, upstream developers recommend backing up ~/.gnupg because some additional configuration will probably be necessary and you could lose your keys. You can find instructions at and

If the top directory path where the source is unpacked contains symbolic links, the openpgp tests may fail. If this is your case and you wish to run the test suite, fix that with:

sed -e '/noinst_SCRIPTS = gpg-zip/c sbin_SCRIPTS += gpg-zip' \
    -i tools/

以下のコマンドを実行して GnuPG 2 をビルドします。

./configure --prefix=/usr            \
            --enable-symcryptrun     \
            --docdir=/usr/share/doc/gnupg-2.2.10 &&
make &&

makeinfo --html --no-split -o doc/gnupg_nochunks.html doc/gnupg.texi &&
makeinfo --plaintext       -o doc/gnupg.txt           doc/gnupg.texi

texlive-20180414 をインストールしていて、種々のフォーマットのドキュメントを生成したい場合は、以下のコマンドを実行します。 (ps ふぉーまっとに対しては fig2dev が必要になります。)

make -C doc pdf ps html

ビルド結果をテストする場合は make check を実行します。

Note that if you have already installed GnuPG, the instructions below will overwrite /usr/share/man/man1/gpg-zip.1. Now, as the root user:

make install &&

install -v -m755 -d /usr/share/doc/gnupg-2.2.10/html            &&
install -v -m644    doc/gnupg_nochunks.html \
                    /usr/share/doc/gnupg-2.2.10/html/gnupg.html &&
install -v -m644    doc/*.texi doc/gnupg.txt \

種々のフォーマットのドキュメントを生成した場合は root ユーザーになり以下のコマンドを実行します。

install -v -m644 doc/gnupg.html/* \
                 /usr/share/doc/gnupg-2.2.10/html &&
install -v -m644 doc/gnupg.{pdf,dvi,ps} \


sed ... tools/ This command is needed to build the gpg-zip program.

--docdir=/usr/share/doc/gnupg-2.2.10: This switch changes the default docdir to /usr/share/doc/gnupg-2.2.10.

--enable-symcryptrun: This switch enables building the symcryptrun program.

--enable-all-tests: allows more tests to be run whith make check.

--enable-g13: This switch enables building the g13 program.


インストールプログラム: addgnupghome, applygnupgdefaults, dirmngr, dirmngr-client, g13 (任意ビルド), gpg-agent, gpg-connect-agent, gpg, gpgconf, gpgparsemail, gpgscm, gpgsm, gpgtar, gpgv, gpg-zip, kbxutil, symcryptrun, watchgnupg
インストールライブラリ: なし
インストールディレクトリ: /usr/share/doc/gnupg-2.2.10, /usr/share/gnupg

Short Descriptions


is used to create and populate user's ~/.gnupg directories


is a wrapper script used to run gpgconf with the --apply-defaults parameter on all user's GnuPG home directories.


is a tool that takes care of accessing the OpenPGP keyservers.


is a tool to contact a running dirmngr and test whether a certificate has been revoked.


is a tool to create, mount or unmount an encrypted file system container (optional).


is a daemon used to manage secret (private) keys independently from any protocol. It is used as a backend for gpg2 and gpgsm as well as for a couple of other utilities.


is a utility used to communicate with a running gpg-agent.


is the OpenPGP part of the GNU Privacy Guard (GnuPG). It is a tool used to provide digital encryption and signing services using the OpenPGP standard.


is a utility used to automatically and reasonably safely query and modify configuration files in the ~/.gnupg home directory. It is designed not to be invoked manually by the user, but automatically by graphical user interfaces.


is a utility currently only useful for debugging. Run it with --help for usage information.


executes the given scheme program or spawns an interactive shell.


is a tool similar to gpg2 used to provide digital encryption and signing services on X.509 certificates and the CMS protocol. It is mainly used as a backend for S/MIME mail processing.


is a tool to encrypt or sign files into an archive.


is a verify only version of gpg2.


encrypts or signs files into an archive.


is used to list, export and import Keybox data.


is a simple symmetric encryption tool.


is used to listen to a Unix Domain socket created by any of the GnuPG tools.

最終更新日: 2018-09-06 07:25:22 +0900