How To Install uchardet on Fedora 34

uchardet is An encoding detector library ported from Mozilla An encoding detector library ported from Mozilla

Introduction

In this tutorial we learn how to install uchardet on Fedora 34.

What is uchardet

Uchardet is a C language binding of the original C++ implementation of the universal charset detection library by Mozilla. Uchardet is an encoding detector library, which takes a sequence of bytes in an unknown character encoding without any additional information, and attempts to determine the encoding of the text. uchardet 0.0.6 13.fc34 x86_64 94 k uchardet-0.0.6-13.fc34.src.rpm updates An encoding detector library ported from Mozilla https MPLv1.1 or GPLv2+ or LGPLv2+ Uchardet is a C language binding of the original C++ implementation of the universal charset detection library by Mozilla. Uchardet is an encoding detector library, which takes a sequence of bytes in an unknown character encoding without any additional information, and attempts to determine the encoding of the text.

We can use yum or dnf to install uchardet on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install uchardet.

Install uchardet on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install uchardet

Install uchardet on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install uchardet

How To Uninstall uchardet on Fedora 34

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

sudo dnf remove uchardet

uchardet Package Contents on Fedora 34

/usr/bin/uchardet
/usr/lib/.build-id
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/9dfafac119352f8ca160a1a686775ef060a68e
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/d697dd6d75b0aca731670dcd3e6d4cefba9af6
/usr/lib64/libuchardet.so.0
/usr/lib64/libuchardet.so.0.0.6
/usr/share/doc/uchardet
/usr/share/doc/uchardet/AUTHORS
/usr/share/licenses/uchardet
/usr/share/licenses/uchardet/COPYING
/usr/share/man/man1/uchardet.1.gz
/usr/bin/uchardet
/usr/lib/.build-id
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/070f4c5e4c0a2df04eb4c6507247631c0066e7
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/a2915243c5a647601f002289357a2670905f3b
/usr/lib64/libuchardet.so.0
/usr/lib64/libuchardet.so.0.0.6
/usr/share/doc/uchardet
/usr/share/doc/uchardet/AUTHORS
/usr/share/licenses/uchardet
/usr/share/licenses/uchardet/COPYING
/usr/share/man/man1/uchardet.1.gz
/usr/bin/uchardet
/usr/lib/.build-id
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/356352a0b8eb8492cffa016dd84874234ea933
/usr/lib/.build-id/80
/usr/lib/.build-id/80/bb7c5b5230a516584dddd524d923564b93a970
/usr/lib/libuchardet.so.0
/usr/lib/libuchardet.so.0.0.6
/usr/share/doc/uchardet
/usr/share/doc/uchardet/AUTHORS
/usr/share/licenses/uchardet
/usr/share/licenses/uchardet/COPYING
/usr/share/man/man1/uchardet.1.gz
/usr/bin/uchardet
/usr/lib/.build-id
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/fe98ef83f475901f5a4c3c084a51e05a88eb8d
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/5ec6330693f93beeb1f7cfbb238cd4dd94916e
/usr/lib/libuchardet.so.0
/usr/lib/libuchardet.so.0.0.6
/usr/share/doc/uchardet
/usr/share/doc/uchardet/AUTHORS
/usr/share/licenses/uchardet
/usr/share/licenses/uchardet/COPYING
/usr/share/man/man1/uchardet.1.gz

References

Summary

In this tutorial we learn how to install uchardet on Fedora 34 using yum and dnf.