Update to install gpgme, and to not pass packages as parameters if it's not going to override them.

Includes tests.