How To Install gnupg2 on Fedora 36

In this tutorial we learn how to install gnupg2 in Fedora 36. gnupg2 is Utility for secure communication and data storage

Introduction

In this tutorial we learn how to install gnupg2 on Fedora 36.

What is gnupg2

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 or dnf to install gnupg2 on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gnupg2.

Install gnupg2 on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install gnupg2

Install gnupg2 on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install gnupg2

How To Uninstall gnupg2 on Fedora 36

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

sudo dnf remove gnupg2

gnupg2 Package Contents on Fedora 36

/etc/gnupg
/etc/gnupg/gpgconf.conf
/usr/bin/dirmngr
/usr/bin/dirmngr-client
/usr/bin/g13
/usr/bin/gpg
/usr/bin/gpg-agent
/usr/bin/gpg-card
/usr/bin/gpg-connect-agent
/usr/bin/gpg-wks-client
/usr/bin/gpg-wks-server
/usr/bin/gpg2
/usr/bin/gpgconf
/usr/bin/gpgparsemail
/usr/bin/gpgsplit
/usr/bin/gpgtar
/usr/bin/gpgv
/usr/bin/gpgv2
/usr/bin/watchgnupg
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/4d0ea229de53464e8551b9ad5dd0cef2a4d362
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/a606980d408bf7093885d13b3fdbbe95861fd2
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/296a3fef1e2acb981bdf9ee0c66f6a68cfd3b2
/usr/lib/.build-id/30
/usr/lib/.build-id/30/379c097594b23c83c91e0cf638324b6cedf55f
/usr/lib/.build-id/32
/usr/lib/.build-id/32/c3282cd8724a3c1ee87f701fb59615a471029a
/usr/lib/.build-id/39
/usr/lib/.build-id/39/9de564d4060341510aa6c02b92c274b701d6ae
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/4c21a7ca49eec7a523d5ceef0b6cf928b44ed6
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/5d6649dabb64b1571267b6fd59a52bfa91989f
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/808a1a6dcc1f0b1f4eadeeaa0b90829e747ea3
/usr/lib/.build-id/70
/usr/lib/.build-id/70/a8a6aaa9ba0989fd8db43000c5cca2310a83ff
/usr/lib/.build-id/78
/usr/lib/.build-id/78/160f892e6b28d918db633a6e911166b3efe1fc
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/b573798da74859e795998e80a247a5feb917ab
/usr/lib/.build-id/86
/usr/lib/.build-id/86/c58708d03898bae37612f06c39f19b5084b11c
/usr/lib/.build-id/99
/usr/lib/.build-id/99/17a31d5421c9c80208af19cdf7520278117dd4
/usr/lib/.build-id/99/76236176ea9d6a2573cba981595f1ea2475de8
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/fc4b0d8731f08feae8bb5913694e825e653c57
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/db56d22ad8090c24f7636dd82502df80adc3b3
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/b632e4b21eff12a07ee3c7ab2a9c698f0bc492
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/349b0920151ceabc9e3a5dd3688251cb19f66e
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/20a79e13c79f3dcbad4ff531af710990a35424
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/3017af6d83d3bf17c4a161b25cf65a5046a00d
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/19085f0531eb8f61472e59c906ebf0e17f9d48
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/4c9431da66003145415d173b2ca197eb5f1138
/usr/lib/systemd/user/dirmngr.service
/usr/lib/systemd/user/dirmngr.socket
/usr/lib/systemd/user/gpg-agent-browser.socket
/usr/lib/systemd/user/gpg-agent-extra.socket
/usr/lib/systemd/user/gpg-agent-ssh.socket
/usr/lib/systemd/user/gpg-agent.service
/usr/lib/systemd/user/gpg-agent.socket
/usr/libexec/dirmngr_ldap
/usr/libexec/gpg-check-pattern
/usr/libexec/gpg-pair-tool
/usr/libexec/gpg-preset-passphrase
/usr/libexec/gpg-protect-tool
/usr/libexec/gpg-wks-client
/usr/libexec/keyboxd
/usr/libexec/scdaemon
/usr/sbin/addgnupghome
/usr/sbin/applygnupgdefaults
/usr/sbin/g13-syshelp
/usr/share/doc/gnupg2
/usr/share/doc/gnupg2/AUTHORS
/usr/share/doc/gnupg2/DCO
/usr/share/doc/gnupg2/DETAILS
/usr/share/doc/gnupg2/FAQ
/usr/share/doc/gnupg2/HACKING
/usr/share/doc/gnupg2/KEYSERVER
/usr/share/doc/gnupg2/NEWS
/usr/share/doc/gnupg2/OpenPGP
/usr/share/doc/gnupg2/README
/usr/share/doc/gnupg2/THANKS
/usr/share/doc/gnupg2/TODO
/usr/share/doc/gnupg2/TRANSLATE
/usr/share/doc/gnupg2/examples
/usr/share/doc/gnupg2/examples/Automatic.prf
/usr/share/doc/gnupg2/examples/README
/usr/share/doc/gnupg2/examples/VS-NfD.prf
/usr/share/doc/gnupg2/examples/common.conf
/usr/share/doc/gnupg2/examples/debug.prf
/usr/share/doc/gnupg2/examples/gpgconf.conf
/usr/share/doc/gnupg2/examples/pwpattern.list
/usr/share/doc/gnupg2/examples/qualified.txt
/usr/share/doc/gnupg2/examples/scd-event
/usr/share/doc/gnupg2/examples/systemd-user
/usr/share/doc/gnupg2/examples/systemd-user/README
/usr/share/doc/gnupg2/examples/trustlist.txt
/usr/share/gnupg
/usr/share/gnupg/distsigkey.gpg
/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/sks-keyservers.netCA.pem
/usr/share/info/gnupg.info-1.gz
/usr/share/info/gnupg.info-2.gz
/usr/share/info/gnupg.info-3.gz
/usr/share/info/gnupg.info.gz
/usr/share/licenses/gnupg2
/usr/share/licenses/gnupg2/COPYING
/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/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/dirmngr-client.1.gz
/usr/share/man/man1/gpg-agent.1.gz
/usr/share/man/man1/gpg-card.1.gz
/usr/share/man/man1/gpg-check-pattern.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-wks-client.1.gz
/usr/share/man/man1/gpg-wks-server.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/gpgtar.1.gz
/usr/share/man/man1/gpgv.1.gz
/usr/share/man/man1/gpgv2.1.gz
/usr/share/man/man1/scdaemon.1.gz
/usr/share/man/man1/watchgnupg.1.gz
/usr/share/man/man7/gnupg.7.gz
/usr/share/man/man7/gnupg2.7.gz
/usr/share/man/man8/addgnupghome.8.gz
/usr/share/man/man8/applygnupgdefaults.8.gz
/usr/share/man/man8/dirmngr.8.gz
/etc/gnupg
/etc/gnupg/gpgconf.conf
/usr/bin/dirmngr
/usr/bin/dirmngr-client
/usr/bin/g13
/usr/bin/gpg
/usr/bin/gpg-agent
/usr/bin/gpg-card
/usr/bin/gpg-connect-agent
/usr/bin/gpg-wks-client
/usr/bin/gpg-wks-server
/usr/bin/gpg2
/usr/bin/gpgconf
/usr/bin/gpgparsemail
/usr/bin/gpgsplit
/usr/bin/gpgtar
/usr/bin/gpgv
/usr/bin/gpgv2
/usr/bin/watchgnupg
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/ea1b43d6e2cc6d02950cc9f25d869c44e5b60b
/usr/lib/.build-id/03
/usr/lib/.build-id/03/5d9bebe4245ffa90a8c61a80a25d64e0e157d6
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/56dd6af97d3c7cccd6660ecccee295d41ef754
/usr/lib/.build-id/13
/usr/lib/.build-id/13/01e72376e85f078b01f7f464cbdde7f6abee84
/usr/lib/.build-id/20
/usr/lib/.build-id/20/6d019d4a28c86c5d176f360f5700da1854830c
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/84c97c6304ec9907fe666cb8506ce05c3a64a2
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/c410387d016dab493fce29949e5e5dd83f4885
/usr/lib/.build-id/42
/usr/lib/.build-id/42/c6d6e41c24353b7604d4c1a3702fa76ba9318e
/usr/lib/.build-id/47
/usr/lib/.build-id/47/96d8791791a47d56c1ddcaea115053f8446413
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/5dc3ee92c85eb39f58c374b1f608537f512486
/usr/lib/.build-id/53
/usr/lib/.build-id/53/d0ae69c32916183992083fc69832010c0daf48
/usr/lib/.build-id/54
/usr/lib/.build-id/54/1cb73c5f7dc47b6d99296730796cd6dde001ea
/usr/lib/.build-id/69
/usr/lib/.build-id/69/56fae4d75fa95c2bd602599c7358cceb5262d9
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/0b630c6f1b3fc6760c031fd331e1c7a911555c
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/3c9e01c155f38eb65fda6f062a82c35ec840c9
/usr/lib/.build-id/95
/usr/lib/.build-id/95/c8df5ae25eb49bd0fdc52cd84190d942b5e191
/usr/lib/.build-id/96
/usr/lib/.build-id/96/c1b0cb0d62ddf809a030630e82143c95989ff3
/usr/lib/.build-id/97
/usr/lib/.build-id/97/6ad7837760170499ad503e6603cd1bf9e45bff
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/d3f21567218aae614315fb08e6fb1b6732dc72
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/277aef69c9410377d59f49ea0dc7c24b425f61
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/fadbe8e4c1b831f171c239f5ddf323a621a700
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/196c2ae1cd432b36036bd272667ec6f4316659
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/8ff4f414c9ae4b0189f990b05606e01c976e13
/usr/lib/systemd/user/dirmngr.service
/usr/lib/systemd/user/dirmngr.socket
/usr/lib/systemd/user/gpg-agent-browser.socket
/usr/lib/systemd/user/gpg-agent-extra.socket
/usr/lib/systemd/user/gpg-agent-ssh.socket
/usr/lib/systemd/user/gpg-agent.service
/usr/lib/systemd/user/gpg-agent.socket
/usr/libexec/dirmngr_ldap
/usr/libexec/gpg-check-pattern
/usr/libexec/gpg-pair-tool
/usr/libexec/gpg-preset-passphrase
/usr/libexec/gpg-protect-tool
/usr/libexec/gpg-wks-client
/usr/libexec/keyboxd
/usr/libexec/scdaemon
/usr/sbin/addgnupghome
/usr/sbin/applygnupgdefaults
/usr/sbin/g13-syshelp
/usr/share/doc/gnupg2
/usr/share/doc/gnupg2/AUTHORS
/usr/share/doc/gnupg2/DCO
/usr/share/doc/gnupg2/DETAILS
/usr/share/doc/gnupg2/FAQ
/usr/share/doc/gnupg2/HACKING
/usr/share/doc/gnupg2/KEYSERVER
/usr/share/doc/gnupg2/NEWS
/usr/share/doc/gnupg2/OpenPGP
/usr/share/doc/gnupg2/README
/usr/share/doc/gnupg2/THANKS
/usr/share/doc/gnupg2/TODO
/usr/share/doc/gnupg2/TRANSLATE
/usr/share/doc/gnupg2/examples
/usr/share/doc/gnupg2/examples/Automatic.prf
/usr/share/doc/gnupg2/examples/README
/usr/share/doc/gnupg2/examples/VS-NfD.prf
/usr/share/doc/gnupg2/examples/common.conf
/usr/share/doc/gnupg2/examples/debug.prf
/usr/share/doc/gnupg2/examples/gpgconf.conf
/usr/share/doc/gnupg2/examples/pwpattern.list
/usr/share/doc/gnupg2/examples/qualified.txt
/usr/share/doc/gnupg2/examples/scd-event
/usr/share/doc/gnupg2/examples/systemd-user
/usr/share/doc/gnupg2/examples/systemd-user/README
/usr/share/doc/gnupg2/examples/trustlist.txt
/usr/share/gnupg
/usr/share/gnupg/distsigkey.gpg
/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/sks-keyservers.netCA.pem
/usr/share/info/gnupg.info-1.gz
/usr/share/info/gnupg.info-2.gz
/usr/share/info/gnupg.info-3.gz
/usr/share/info/gnupg.info.gz
/usr/share/licenses/gnupg2
/usr/share/licenses/gnupg2/COPYING
/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/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/dirmngr-client.1.gz
/usr/share/man/man1/gpg-agent.1.gz
/usr/share/man/man1/gpg-card.1.gz
/usr/share/man/man1/gpg-check-pattern.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-wks-client.1.gz
/usr/share/man/man1/gpg-wks-server.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/gpgtar.1.gz
/usr/share/man/man1/gpgv.1.gz
/usr/share/man/man1/gpgv2.1.gz
/usr/share/man/man1/scdaemon.1.gz
/usr/share/man/man1/watchgnupg.1.gz
/usr/share/man/man7/gnupg.7.gz
/usr/share/man/man7/gnupg2.7.gz
/usr/share/man/man8/addgnupghome.8.gz
/usr/share/man/man8/applygnupgdefaults.8.gz
/usr/share/man/man8/dirmngr.8.gz

References

Summary

In this tutorial we learn how to install gnupg2 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).