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:

1
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:

1
2
3
4
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 using Debian IceWeasel 3.0.1 on Debian GNU/Linux | August 12, 2008 at 12:37 pm | Permalink

    dpkg-divert and update-alternatives may help.

  2. imu using Debian IceWeasel 3.0.1 on Debian GNU/Linux | August 12, 2008 at 12:43 pm | Permalink

    The symlink are reversed.

  3. Aaron using Firefox 3.0.1 on GNU/Linux 64 bits | 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 using Debian IceWeasel 3.0.1 on Debian GNU/Linux | August 12, 2008 at 2:38 pm | Permalink

    Where did you find the difference between GnuPGv1 and GnuPGv2 ?

  5. sebsauvage using Firefox 3.0.1 on Windows XP | August 12, 2008 at 11:59 pm | Permalink

    @asd:
    Here, I think:
    http://lists.gnupg.org/pipermail/gnupg-announce/2006q4/000239.html

Post a Comment

Your email is never published nor shared.

Switch to our mobile site