I just noticed that I do not yet have a .gnupg directory on my Fedora 10 system. I haven't tried to create a gpg keyring on it yet. I want to migrate sensibly from a Fedora 7 system to a separate Fedora 10 system. Can I go ahead and copy the .gnupg directory from the old system to the new one? Or should I attempt to create a fresh .gnupg directory on the Fedora 10 system and selectively copy elements of the .gnupg directory from the old system?
Thanks
Bob Cochran Greenbelt, Maryland, USA
Robert L Cochran wrote:
I just noticed that I do not yet have a .gnupg directory on my Fedora 10 system. I haven't tried to create a gpg keyring on it yet. I want to migrate sensibly from a Fedora 7 system to a separate Fedora 10 system. Can I go ahead and copy the .gnupg directory from the old system to the new one? Or should I attempt to create a fresh .gnupg directory on the Fedora 10 system and selectively copy elements of the .gnupg directory from the old system?
You should be fine to copy your ~/.gnupg dir from Fedora 7 to Fedora 10.
The .gnupg dir is created by gpg the first time you run it, so it generally won't exist on a fresh install. As Tim mentioned in another thread, you may want to check if there are any differences between your existing ~/.gnupg/gpg.conf and what gpg would currently create.
The stock gpg.conf file is at /usr/share/gnupg/gpg-conf.skel. You could copy your ~/.gnupg dir and then use diff to see if there were any new settings you wished to copy from the stock config into yours.
I'd compare the files with something like this:
$ diff -u ~/.gnupg/gpg.conf /usr/share/gnupg/gpg-conf.skel | vi -
Replace with your preferred file comparison method. :)
Todd Zullinger wrote:
Robert L Cochran wrote:
I just noticed that I do not yet have a .gnupg directory on my Fedora 10 system. I haven't tried to create a gpg keyring on it yet. I want to migrate sensibly from a Fedora 7 system to a separate Fedora 10 system. Can I go ahead and copy the .gnupg directory from the old system to the new one? Or should I attempt to create a fresh .gnupg directory on the Fedora 10 system and selectively copy elements of the .gnupg directory from the old system?
You should be fine to copy your ~/.gnupg dir from Fedora 7 to Fedora 10.
The .gnupg dir is created by gpg the first time you run it, so it generally won't exist on a fresh install. As Tim mentioned in another thread, you may want to check if there are any differences between your existing ~/.gnupg/gpg.conf and what gpg would currently create.
The stock gpg.conf file is at /usr/share/gnupg/gpg-conf.skel. You could copy your ~/.gnupg dir and then use diff to see if there were any new settings you wished to copy from the stock config into yours.
I'd compare the files with something like this:
$ diff -u ~/.gnupg/gpg.conf /usr/share/gnupg/gpg-conf.skel | vi -
Replace with your preferred file comparison method. :)
Thank you, this is a useful lesson. With this email I should be using Enigmail 0.95.7 and hopefully no one is finding the problems I showed earlier.
Bob