Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

gnupg 2.2 migrate

Divesh Uttamchandani edited this page May 18, 2018 · 1 revision

Get the key and contacts from an existing $GNUPGHOME:

testuser@laptop:~$ rm -rf ~/.egpg/

testuser@laptop:~$ killall -u $USER gpg-agent

testuser@laptop:~$ egpg init

mkdir: created directory '/home/testuser/.egpg'

Appended the following lines to '/home/testuser/.bashrc':
---------------8<---------------
### start egpg config
export GPG_TTY=$(tty)
export EGPG_DIR="/home/testuser/.egpg"
#export GNUPGHOME="/home/testuser/.egpg/.gnupg"
### end egpg config
--------------->8---------------
Please reload it to enable the new config:
    source "/home/testuser/.bashrc"

testuser@laptop:~$ source "/home/testuser/.bashrc"

testuser@laptop:~$ egpg migrate

Importing key from: /home/testuser/.gnupg

Importing contacts from: /home/testuser/.gnupg