Have a read of this
https://bugzilla.redhat.com/show_bug.cgi?id=574406, but in short it looks like there should be 2 versions; gpg2 that expects a GUI and the old gpg.
See also the man page that mentions this;
http://linux.die.net/man/1/gpg
It looks like null-ing env vars like DISPLAY may help..
I've had a quick look at RHEL6 repo and can only find gpg2 ...
Best if you phone RH and ask I reckon (after having read the bugzilla for background info) & please(!) post the soln.
I'm sure there's lots of us who would like to know.