mainSavannah Administration - Savannah

Public Areas
MainHomepageCookbookIn Depth GuideSupportMailing ListsCVSArchTasksNewsSearch

Download Area - How to install and use gpg-agent?

Depending on your GNU/Linux distribution, you can find precompiled packages.

Here is how to use gpg-agent in a simple way:

eval `gpg-agent --daemon` # start the daemon
gpg --sign -b --use-agent file.tar.gz # asked passphrase
gpg --sign -b --use-agent file2.tar.gz # did not ask passphrase
# ...
killall gpg-agent # stop the daemon

And here are some details on how I (Sylvain) manually compiled it on my old laptop running Red Hat GNU/Linux 7.3:

  1. First, I installed some dependencies. I installed them from source.
  2. Then I compiled gpg-agent:
    cvs -d:pserver:anoncvs@cvs.gnupg.org:/cvs/gnupg login # pass == anoncvs
    cvs -d:pserver:anoncvs@cvs.gnupg.org:/cvs/gnupg co -r V1-9-9 gnupg
    sh autogen.sh # maybe you will have to update your autotools
    ./configure
    make
    cd agent
    make install
    
  3. Then I compiled pinentry:
    cvs -d:pserver:anoncvs@cvs.gnupg.org:/cvs/aegypten login # pass == anoncvs
    cvs -d:pserver:anoncvs@cvs.gnupg.org:/cvs/aegypten co pinentry
    sh autogen.sh
    ./configure && make && make install
    
  4. Last, I configured gpg-agent:
    echo "default-cache-ttl 600" > ~/.gnupg/gpg-agent.conf # remembers the passphrase for 10mn (optional)
    echo "pinentry-program /usr/local/bin/pinentry-gtk" >> ~/.gnupg/gpg-agent.conf # uses the GTK mode, the ncurses mode did not work for me
    

Updated $Date: 2005/05/04 19:10:19 $

 

Other questions:

 

The FAQ is also available in the following formats:

Back to the top

Powered by Savane SVN (toward 1.5)