Troubleshooting Files in the ~/.gnupg/ Directory

The LPI exam also expects you to identify the files in the ~/.gnupg directory, mainly because you may need to troubleshoot an installation or obtain a private key. Following is a listing of the files found in a typical GPG implementation, regardless of Linux distribution:


Allows you to create default settings for GPG, including a preferred key server. A key server contains the public keys of any user who wishes to upload her keys.


Contains the public keys that you have imported.


A text file containing settings that enable GPG to create random numbers more quickly and easily.


Contains the private key that determines your identity.


The trust database, which contains the information concerning the trust values you have assigned to various public keys. A user may set variable levels of trust to public keys in his key ring. More information on trust can be found in the GPG documentation.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.