How To Install cld2 on Fedora 34

cld2 is A library to detect the natural language of text A library to detect the natural language of text

Introduction

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

What is cld2

A library that detects over 80 languages in UTF-8 text, based largely on groups of four letters. Also tables for 160+ language versions. cld2 0 0.19.20150821gitb56fa78.fc34 x86_64 5.5 M cld2-0-0.19.20150821gitb56fa78.fc34.src.rpm fedora A library to detect the natural language of text https ASL 2.0 A library that detects over 80 languages in UTF-8 text, based largely on groups of four letters. Also tables for 160+ language versions.

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

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

sudo dnf -y install cld2

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

sudo yum -y install cld2

How To Uninstall cld2 on Fedora 34

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

sudo dnf remove cld2

cld2 Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/9010fe2621ddd005aafb0872dc28a7e92d2c02
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/4902258b3ccd7265ff92d087a18336f1d717a9
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/26c8388473eb72cbfd72b61fcb740718c62b01
/usr/lib64/libcld2.so.0
/usr/lib64/libcld2.so.0.0.198
/usr/lib64/libcld2_dynamic.so.0
/usr/lib64/libcld2_dynamic.so.0.0.198
/usr/lib64/libcld2_full.so.0
/usr/lib64/libcld2_full.so.0.0.198
/usr/share/doc/cld2
/usr/share/doc/cld2/README.md
/usr/share/licenses/cld2
/usr/share/licenses/cld2/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/be5ad130dba94d066259cb020b6f503318268b
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/f5b9ce8fe4e1e2d13b4276141f05e1461ee7ab
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/04d3004e1a679b9b8f432e18f3e49a4f63f9d6
/usr/lib/libcld2.so.0
/usr/lib/libcld2.so.0.0.198
/usr/lib/libcld2_dynamic.so.0
/usr/lib/libcld2_dynamic.so.0.0.198
/usr/lib/libcld2_full.so.0
/usr/lib/libcld2_full.so.0.0.198
/usr/share/doc/cld2
/usr/share/doc/cld2/README.md
/usr/share/licenses/cld2
/usr/share/licenses/cld2/LICENSE

References

Summary

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