Image of the glider from the Game of Life by John Conway
Skip to content

Using GnuPGv2

I've moved to GnuPG version 2, mainly just out of curiosity. I have read the feature list between version 1 and 2. Apparently, version 2 supports the same algorithms, completely backwards-compatible with version 1, more modular and supports additional functionality. So, with that, my GPG key has been re-exported using version 2. It's available on my personal site. Feel free to update as needed. The most current version of my public key will always be found there. Further, all my email will be signed with version 2. If this causes any problems with verifying my emails, please let me know.

GnuPG version 2 is available in the Ubuntu repositories. Pull up a terminal, and type:

sudo aptitude install gnupg2

If you want to make version 2 the default for all applications, including Seahorse, KGPG, GPA, Enigmail, and others, then we just need to backup our currently installed binary, and create a symbolic link pointing to version 2:

sudo mv /usr/bin/gpg /usr/bin/gpg.back
sudo mv /usr/bin/gpgv /usr/bin/gpgv.back
sudo ln -s /usr/bin/gpg2 /usr/bin/gpg
sudo ln -s /usr/bin/gpgv2 /usr/bin/gpgv

If there is a better way to do this with your ~/.gnupg/gpg.conf file, I would be very interested. The above seems "hack-ish" to me. Removing the 'gnupg' package from Ubuntu also breaks many, many packages, so that doesn't seem to be a sane option.

{ 5 } Comments

  1. Byron Clark | August 12, 2008 at 12:37 pm | Permalink

    dpkg-divert and update-alternatives may help.

  2. imu | August 12, 2008 at 12:43 pm | Permalink

    The symlink are reversed.

  3. Aaron | August 12, 2008 at 12:50 pm | Permalink

    @Byron Clark- I'll look into that, although the alternatives system seems just a "hack-ish".

    @imu- Good eye. Updated the post

  4. asd | August 12, 2008 at 2:38 pm | Permalink

    Where did you find the difference between GnuPGv1 and GnuPGv2 ?

  5. sebsauvage | August 12, 2008 at 11:59 pm | Permalink

    Here, I think:

Post a Comment

Your email is never published nor shared.