How To Install enca on CentOS 8
Introduction
In this tutorial we learn how to install enca
on CentOS 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. enca 1.19 1.el8 x86_64 113 k enca-1.19-1.el8.src.rpm powertools Character set analyzer and detector http GPLv2 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install enca.
Install enca 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 enca
using dnf
by running the following command:
sudo dnf -y install enca
Install enca 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 enca
using yum
by running the following command:
sudo yum -y install enca
How To Uninstall enca on CentOS 8
To uninstall only the enca
package we can use the following command:
sudo dnf remove enca
enca Package Contents on CentOS 8
/usr/bin/enca
/usr/bin/enconv
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/227f6b512846ad1b429d9fa1bff4412479efc6
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/696f891c2a37360889de3c60103fa1a2888599
/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/82
/usr/lib/.build-id/82/d39d17e0b317cd2b354c85fbb33826ec3a3e2e
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/6f393968f6b4052e2508070e16d30ad50e07c7
/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
- [enca website](http://cihar.com/software/enca http://cihar.com/software/enca)
Summary
In this tutorial we learn how to install enca
on CentOS 8 using yum and dnf.