How To Install gnupg2.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gnupg2.x86_64 in Amazon Linux 2. gnupg2.x86_64 is Utility for secure communication and data storage

Introduction

In this tutorial we learn how to install gnupg2.x86_64 on Amazon Linux 2.

What is gnupg2.x86_64

GnuPG is GNU’s tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC2440 and the S/MIME standard as described by several RFCs. GnuPG 2.0 is a newer version of GnuPG with additional support for S/MIME. It has a different design philosophy that splits functionality up into several modules. The S/MIME and smartcard functionality is provided by the gnupg2-smime package.

We can use yum to install gnupg2.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gnupg2.x86_64.

Install gnupg2.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gnupg2.x86_64 using yum by running the following command:

sudo yum -y install gnupg2.x86_64

How To Uninstall gnupg2.x86_64 on Amazon Linux 2

To uninstall only the gnupg2.x86_64 package we can use the following command:

sudo yum remove gnupg2.x86_64

gnupg2.x86_64 Package Contents on Amazon Linux 2

/etc/gnupg
/etc/gnupg/gpgconf.conf
/usr/bin/gpg
/usr/bin/gpg-agent
/usr/bin/gpg-connect-agent
/usr/bin/gpg-zip
/usr/bin/gpg2
/usr/bin/gpgconf
/usr/bin/gpgparsemail
/usr/bin/gpgsplit
/usr/bin/gpgv
/usr/bin/gpgv2
/usr/bin/watchgnupg
/usr/libexec/gnupg-pcsc-wrapper
/usr/libexec/gpg-check-pattern
/usr/libexec/gpg-preset-passphrase
/usr/libexec/gpg-protect-tool
/usr/libexec/gpg2keys_curl
/usr/libexec/gpg2keys_finger
/usr/libexec/gpg2keys_hkp
/usr/libexec/gpg2keys_ldap
/usr/sbin/addgnupghome
/usr/sbin/applygnupgdefaults
/usr/share/doc/gnupg2-2.0.22
/usr/share/doc/gnupg2-2.0.22/AUTHORS
/usr/share/doc/gnupg2-2.0.22/COPYING
/usr/share/doc/gnupg2-2.0.22/ChangeLog
/usr/share/doc/gnupg2-2.0.22/DETAILS
/usr/share/doc/gnupg2-2.0.22/FAQ
/usr/share/doc/gnupg2-2.0.22/HACKING
/usr/share/doc/gnupg2-2.0.22/KEYSERVER
/usr/share/doc/gnupg2-2.0.22/NEWS
/usr/share/doc/gnupg2-2.0.22/OpenPGP
/usr/share/doc/gnupg2-2.0.22/README
/usr/share/doc/gnupg2-2.0.22/THANKS
/usr/share/doc/gnupg2-2.0.22/TODO
/usr/share/doc/gnupg2-2.0.22/TRANSLATE
/usr/share/doc/gnupg2-2.0.22/examples
/usr/share/doc/gnupg2-2.0.22/examples/README
/usr/share/doc/gnupg2-2.0.22/examples/gpgconf.conf
/usr/share/doc/gnupg2-2.0.22/examples/pwpattern.list
/usr/share/doc/gnupg2-2.0.22/examples/scd-event
/usr/share/doc/gnupg2-2.0.22/examples/trustlist.txt
/usr/share/gnupg
/usr/share/gnupg/gpg-conf.skel
/usr/share/gnupg/help.be.txt
/usr/share/gnupg/help.ca.txt
/usr/share/gnupg/help.cs.txt
/usr/share/gnupg/help.da.txt
/usr/share/gnupg/help.de.txt
/usr/share/gnupg/help.el.txt
/usr/share/gnupg/help.eo.txt
/usr/share/gnupg/help.es.txt
/usr/share/gnupg/help.et.txt
/usr/share/gnupg/help.fi.txt
/usr/share/gnupg/help.fr.txt
/usr/share/gnupg/help.gl.txt
/usr/share/gnupg/help.hu.txt
/usr/share/gnupg/help.id.txt
/usr/share/gnupg/help.it.txt
/usr/share/gnupg/help.ja.txt
/usr/share/gnupg/help.nb.txt
/usr/share/gnupg/help.pl.txt
/usr/share/gnupg/help.pt.txt
/usr/share/gnupg/help.pt_BR.txt
/usr/share/gnupg/help.ro.txt
/usr/share/gnupg/help.ru.txt
/usr/share/gnupg/help.sk.txt
/usr/share/gnupg/help.sv.txt
/usr/share/gnupg/help.tr.txt
/usr/share/gnupg/help.txt
/usr/share/gnupg/help.zh_CN.txt
/usr/share/gnupg/help.zh_TW.txt
/usr/share/gnupg/qualified.txt
/usr/share/info/gnupg.info-1.gz
/usr/share/info/gnupg.info-2.gz
/usr/share/info/gnupg.info.gz
/usr/share/locale/be/LC_MESSAGES/gnupg2.mo
/usr/share/locale/ca/LC_MESSAGES/gnupg2.mo
/usr/share/locale/cs/LC_MESSAGES/gnupg2.mo
/usr/share/locale/da/LC_MESSAGES/gnupg2.mo
/usr/share/locale/de/LC_MESSAGES/gnupg2.mo
/usr/share/locale/el/LC_MESSAGES/gnupg2.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/gnupg2.mo
/usr/share/locale/en@quot/LC_MESSAGES/gnupg2.mo
/usr/share/locale/eo/LC_MESSAGES/gnupg2.mo
/usr/share/locale/es/LC_MESSAGES/gnupg2.mo
/usr/share/locale/et/LC_MESSAGES/gnupg2.mo
/usr/share/locale/fi/LC_MESSAGES/gnupg2.mo
/usr/share/locale/fr/LC_MESSAGES/gnupg2.mo
/usr/share/locale/gl/LC_MESSAGES/gnupg2.mo
/usr/share/locale/hu/LC_MESSAGES/gnupg2.mo
/usr/share/locale/id/LC_MESSAGES/gnupg2.mo
/usr/share/locale/it/LC_MESSAGES/gnupg2.mo
/usr/share/locale/ja/LC_MESSAGES/gnupg2.mo
/usr/share/locale/nb/LC_MESSAGES/gnupg2.mo
/usr/share/locale/pl/LC_MESSAGES/gnupg2.mo
/usr/share/locale/pt/LC_MESSAGES/gnupg2.mo
/usr/share/locale/pt_BR/LC_MESSAGES/gnupg2.mo
/usr/share/locale/ro/LC_MESSAGES/gnupg2.mo
/usr/share/locale/ru/LC_MESSAGES/gnupg2.mo
/usr/share/locale/sk/LC_MESSAGES/gnupg2.mo
/usr/share/locale/sv/LC_MESSAGES/gnupg2.mo
/usr/share/locale/tr/LC_MESSAGES/gnupg2.mo
/usr/share/locale/uk/LC_MESSAGES/gnupg2.mo
/usr/share/locale/zh_CN/LC_MESSAGES/gnupg2.mo
/usr/share/locale/zh_TW/LC_MESSAGES/gnupg2.mo
/usr/share/man/man1/gpg-agent.1.gz
/usr/share/man/man1/gpg-connect-agent.1.gz
/usr/share/man/man1/gpg-preset-passphrase.1.gz
/usr/share/man/man1/gpg-zip.1.gz
/usr/share/man/man1/gpg.1.gz
/usr/share/man/man1/gpg2.1.gz
/usr/share/man/man1/gpgconf.1.gz
/usr/share/man/man1/gpgparsemail.1.gz
/usr/share/man/man1/gpgv.1.gz
/usr/share/man/man1/gpgv2.1.gz
/usr/share/man/man1/symcryptrun.1.gz
/usr/share/man/man1/watchgnupg.1.gz
/usr/share/man/man8/addgnupghome.8.gz
/usr/share/man/man8/applygnupgdefaults.8.gz

References

Summary

In this tutorial we learn how to install gnupg2.x86_64 on Amazon Linux 2 using yum.