How To Install enca on Rocky Linux 8

In this tutorial we learn how to install enca on Rocky Linux 8. enca is Character set analyzer and detector

Introduction

In this tutorial we learn how to install enca on Rocky Linux 8.

What is enca

Enca is an Extremely Naive Charset Analyser. It detects character set and encoding of text files and can also convert them to other encodings using either a built-in converter or external libraries and tools like libiconv, librecode, or cstocs. Currently, it has support for Belarussian, Bulgarian, Croatian, Czech, Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, Ukrainian, Chinese and some multibyte encodings (mostly variants of Unicode) independent on the language. This package also contains shared Enca library other programs can make use of. Install enca if you need to cope with text files of dubious origin and unknown encoding and convert them to some reasonable encoding.

We can use yum or dnf to install enca on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install enca.

Install enca on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install enca

Install enca on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install enca

How To Uninstall enca on Rocky Linux 8

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

sudo dnf remove enca

enca Package Contents on Rocky Linux 8

/usr/bin/enca
/usr/bin/enconv
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/212945571dc87555e27727c10577be5d3bdc5f
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/0e7095e247b4304980a38e9339c8565fe5565a
/usr/lib64/libenca.so.0
/usr/lib64/libenca.so.0.5.1
/usr/share/doc/enca
/usr/share/doc/enca/AUTHORS
/usr/share/doc/enca/COPYING
/usr/share/doc/enca/FAQ
/usr/share/doc/enca/README
/usr/share/doc/enca/THANKS
/usr/share/doc/enca/TODO
/usr/share/man/man1/enca.1.gz
/usr/share/man/man1/enconv.1.gz
/usr/bin/enca
/usr/bin/enconv
/usr/lib/.build-id
/usr/lib/.build-id/70
/usr/lib/.build-id/70/77bc05a1cbdaf1151bb965a5fe7c752f87cb4f
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/afc7a0f05011ab09961348a0aea1b809547f7b
/usr/lib/libenca.so.0
/usr/lib/libenca.so.0.5.1
/usr/share/doc/enca
/usr/share/doc/enca/AUTHORS
/usr/share/doc/enca/COPYING
/usr/share/doc/enca/FAQ
/usr/share/doc/enca/README
/usr/share/doc/enca/THANKS
/usr/share/doc/enca/TODO
/usr/share/man/man1/enca.1.gz
/usr/share/man/man1/enconv.1.gz

References

Summary

In this tutorial we learn how to install enca on Rocky Linux 8 using yum and dnf.