8

I've just installed GPG Suit and have pubring.gpg and pubring.gpg~ in ~/.gnupg. Why? Thank you.

~  cd .gnupg/
~/.gnupg  ls -a
.
..
gpg-agent.conf
gpg.conf
pubring.gpg
pubring.gpg~
secring.gpg
trustdb.gpg
  • Have a look at pubring.gpg~'s contents using gpg --list-packets ~/.gnupg/pubring.gpg. What is it's file size and modification date? – Jens Erat Oct 21 '15 at 14:39
8

The tilde is a common suffix for file backups.

This file is a backup of your public keys, used by GPG to avoid corrupting your keys when you modify them.

You can safely delete it, but it will be recreated the next time you use the program to modify the pubring.

Source.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy