How To Install python3-chardet on CentOS 8

python3-chardet is Character encoding auto-detection in Python 3

Introduction

In this tutorial we learn how to install python3-chardet on CentOS 8.

What is python3-chardet

Character encoding auto-detection in Python. As smart as your browser. Open source. Python 3 version.

We can use yum or dnf to install python3-chardet on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-chardet.

Install python3-chardet 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-chardet using dnf by running the following command:

sudo dnf -y install python3-chardet

Install python3-chardet 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-chardet using yum by running the following command:

sudo yum -y install python3-chardet

How To Uninstall python3-chardet on CentOS 8

To uninstall only the python3-chardet package we can use the following command:

sudo dnf remove python3-chardet

python3-chardet Package Contents on CentOS 8

/usr/bin/chardetect
/usr/lib/python3.6/site-packages/chardet
/usr/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg-info
/usr/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/chardet/__init__.py
/usr/lib/python3.6/site-packages/chardet/__pycache__
/usr/lib/python3.6/site-packages/chardet/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/big5freq.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/big5freq.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/big5prober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/big5prober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/chardistribution.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/chardistribution.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/charsetgroupprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/charsetgroupprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/charsetprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/charsetprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/codingstatemachine.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/codingstatemachine.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/compat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/compat.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/cp949prober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/cp949prober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/enums.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/enums.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/escprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/escprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/escsm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/escsm.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/eucjpprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/eucjpprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/euckrfreq.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/euckrfreq.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/euckrprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/euckrprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/euctwfreq.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/euctwfreq.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/euctwprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/euctwprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/gb2312freq.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/gb2312freq.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/gb2312prober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/gb2312prober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/hebrewprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/hebrewprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/jisfreq.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/jisfreq.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/jpcntx.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/jpcntx.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langbulgarianmodel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langbulgarianmodel.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langcyrillicmodel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langcyrillicmodel.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langgreekmodel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langgreekmodel.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langhebrewmodel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langhebrewmodel.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langhungarianmodel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langhungarianmodel.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langthaimodel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langthaimodel.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langturkishmodel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/langturkishmodel.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/latin1prober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/latin1prober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/mbcharsetprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/mbcharsetprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/mbcsgroupprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/mbcsgroupprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/mbcssm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/mbcssm.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/sbcharsetprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/sbcharsetprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/sbcsgroupprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/sbcsgroupprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/sjisprober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/sjisprober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/universaldetector.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/universaldetector.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/utf8prober.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/utf8prober.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/__pycache__/version.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/big5freq.py
/usr/lib/python3.6/site-packages/chardet/big5prober.py
/usr/lib/python3.6/site-packages/chardet/chardistribution.py
/usr/lib/python3.6/site-packages/chardet/charsetgroupprober.py
/usr/lib/python3.6/site-packages/chardet/charsetprober.py
/usr/lib/python3.6/site-packages/chardet/cli
/usr/lib/python3.6/site-packages/chardet/cli/__init__.py
/usr/lib/python3.6/site-packages/chardet/cli/__pycache__
/usr/lib/python3.6/site-packages/chardet/cli/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/cli/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/cli/__pycache__/chardetect.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/chardet/cli/__pycache__/chardetect.cpython-36.pyc
/usr/lib/python3.6/site-packages/chardet/cli/chardetect.py
/usr/lib/python3.6/site-packages/chardet/codingstatemachine.py
/usr/lib/python3.6/site-packages/chardet/compat.py
/usr/lib/python3.6/site-packages/chardet/cp949prober.py
/usr/lib/python3.6/site-packages/chardet/enums.py
/usr/lib/python3.6/site-packages/chardet/escprober.py
/usr/lib/python3.6/site-packages/chardet/escsm.py
/usr/lib/python3.6/site-packages/chardet/eucjpprober.py
/usr/lib/python3.6/site-packages/chardet/euckrfreq.py
/usr/lib/python3.6/site-packages/chardet/euckrprober.py
/usr/lib/python3.6/site-packages/chardet/euctwfreq.py
/usr/lib/python3.6/site-packages/chardet/euctwprober.py
/usr/lib/python3.6/site-packages/chardet/gb2312freq.py
/usr/lib/python3.6/site-packages/chardet/gb2312prober.py
/usr/lib/python3.6/site-packages/chardet/hebrewprober.py
/usr/lib/python3.6/site-packages/chardet/jisfreq.py
/usr/lib/python3.6/site-packages/chardet/jpcntx.py
/usr/lib/python3.6/site-packages/chardet/langbulgarianmodel.py
/usr/lib/python3.6/site-packages/chardet/langcyrillicmodel.py
/usr/lib/python3.6/site-packages/chardet/langgreekmodel.py
/usr/lib/python3.6/site-packages/chardet/langhebrewmodel.py
/usr/lib/python3.6/site-packages/chardet/langhungarianmodel.py
/usr/lib/python3.6/site-packages/chardet/langthaimodel.py
/usr/lib/python3.6/site-packages/chardet/langturkishmodel.py
/usr/lib/python3.6/site-packages/chardet/latin1prober.py
/usr/lib/python3.6/site-packages/chardet/mbcharsetprober.py
/usr/lib/python3.6/site-packages/chardet/mbcsgroupprober.py
/usr/lib/python3.6/site-packages/chardet/mbcssm.py
/usr/lib/python3.6/site-packages/chardet/sbcharsetprober.py
/usr/lib/python3.6/site-packages/chardet/sbcsgroupprober.py
/usr/lib/python3.6/site-packages/chardet/sjisprober.py
/usr/lib/python3.6/site-packages/chardet/universaldetector.py
/usr/lib/python3.6/site-packages/chardet/utf8prober.py
/usr/lib/python3.6/site-packages/chardet/version.py
/usr/share/doc/python3-chardet
/usr/share/doc/python3-chardet/README.rst
/usr/share/licenses/python3-chardet
/usr/share/licenses/python3-chardet/LICENSE

References

Summary

In this tutorial we learn how to install python3-chardet on CentOS 8 using yum and dnf.