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

gnupg 2.1 migrate

Dashamir Hoxha edited this page May 31, 2016 · 3 revisions

Get the key and contacts from an existing $GNUPGHOME:

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

user@laptop:~$ egpg init

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

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

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

user@laptop:~$ egpg migrate

Importing key from: /home/user/.gnupg
Importing contacts from: /home/user/.gnupg