How To Install python3-gpg on CentOS 8
Introduction
In this tutorial we learn how to install python3-gpg
on CentOS 8.
What is python3-gpg
gpgme bindings for Python 3. python3-gpg 1.13.1 7.el8 x86_64 245 k gpgme-1.13.1-7.el8.src.rpm baseos gpgme bindings for Python 3 https LGPLv2+ and MIT gpgme bindings for Python 3.
We can use yum
or dnf
to install python3-gpg
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-gpg.
Install python3-gpg on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install python3-gpg
using dnf
by running the following command:
sudo dnf -y install python3-gpg
Install python3-gpg on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install python3-gpg
using yum
by running the following command:
sudo yum -y install python3-gpg
How To Uninstall python3-gpg on CentOS 8
To uninstall only the python3-gpg
package we can use the following command:
sudo dnf remove python3-gpg
python3-gpg Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/34
/usr/lib/.build-id/34/cdec714e50d6dc2b9c41c7dcf98a8192e99314
/usr/lib64/python3.6/site-packages/gpg
/usr/lib64/python3.6/site-packages/gpg-1.13.1-py3.6.egg-info
/usr/lib64/python3.6/site-packages/gpg/__init__.py
/usr/lib64/python3.6/site-packages/gpg/__pycache__
/usr/lib64/python3.6/site-packages/gpg/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/callbacks.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/callbacks.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/core.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/core.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/errors.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/errors.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/gpgme.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/gpgme.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/results.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/results.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/util.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/__pycache__/version.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/_gpgme.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/gpg/callbacks.py
/usr/lib64/python3.6/site-packages/gpg/constants
/usr/lib64/python3.6/site-packages/gpg/constants/__init__.py
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/create.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/create.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/event.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/event.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/import_type.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/import_type.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/keysign.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/keysign.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/md.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/md.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/pk.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/pk.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/protocol.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/protocol.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/sigsum.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/sigsum.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/status.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/status.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/validity.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/__pycache__/validity.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/create.py
/usr/lib64/python3.6/site-packages/gpg/constants/data
/usr/lib64/python3.6/site-packages/gpg/constants/data/__init__.py
/usr/lib64/python3.6/site-packages/gpg/constants/data/__pycache__
/usr/lib64/python3.6/site-packages/gpg/constants/data/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/data/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/data/__pycache__/encoding.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/data/__pycache__/encoding.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/data/encoding.py
/usr/lib64/python3.6/site-packages/gpg/constants/event.py
/usr/lib64/python3.6/site-packages/gpg/constants/import_type.py
/usr/lib64/python3.6/site-packages/gpg/constants/keylist
/usr/lib64/python3.6/site-packages/gpg/constants/keylist/__init__.py
/usr/lib64/python3.6/site-packages/gpg/constants/keylist/__pycache__
/usr/lib64/python3.6/site-packages/gpg/constants/keylist/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/keylist/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/keylist/__pycache__/mode.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/keylist/__pycache__/mode.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/keylist/mode.py
/usr/lib64/python3.6/site-packages/gpg/constants/keysign.py
/usr/lib64/python3.6/site-packages/gpg/constants/md.py
/usr/lib64/python3.6/site-packages/gpg/constants/pk.py
/usr/lib64/python3.6/site-packages/gpg/constants/protocol.py
/usr/lib64/python3.6/site-packages/gpg/constants/sig
/usr/lib64/python3.6/site-packages/gpg/constants/sig/__init__.py
/usr/lib64/python3.6/site-packages/gpg/constants/sig/__pycache__
/usr/lib64/python3.6/site-packages/gpg/constants/sig/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/sig/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/sig/__pycache__/mode.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/sig/__pycache__/mode.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/sig/__pycache__/notation.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/sig/__pycache__/notation.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/sig/mode.py
/usr/lib64/python3.6/site-packages/gpg/constants/sig/notation.py
/usr/lib64/python3.6/site-packages/gpg/constants/sigsum.py
/usr/lib64/python3.6/site-packages/gpg/constants/status.py
/usr/lib64/python3.6/site-packages/gpg/constants/tofu
/usr/lib64/python3.6/site-packages/gpg/constants/tofu/__init__.py
/usr/lib64/python3.6/site-packages/gpg/constants/tofu/__pycache__
/usr/lib64/python3.6/site-packages/gpg/constants/tofu/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/tofu/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/tofu/__pycache__/policy.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/tofu/__pycache__/policy.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gpg/constants/tofu/policy.py
/usr/lib64/python3.6/site-packages/gpg/constants/validity.py
/usr/lib64/python3.6/site-packages/gpg/core.py
/usr/lib64/python3.6/site-packages/gpg/errors.py
/usr/lib64/python3.6/site-packages/gpg/gpgme.py
/usr/lib64/python3.6/site-packages/gpg/results.py
/usr/lib64/python3.6/site-packages/gpg/util.py
/usr/lib64/python3.6/site-packages/gpg/version.py
/usr/share/doc/python3-gpg
/usr/share/doc/python3-gpg/README
References
- [python3-gpg website](https://gnupg.org/related_software/gpgme/ https://gnupg.org/related_software/gpgme/)
Summary
In this tutorial we learn how to install python3-gpg
on CentOS 8 using yum and dnf.