How To Install enca on CentOS 7
Introduction
In this tutorial we learn how to install enca
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install enca.
Install enca on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install enca
using yum
by running the following command:
sudo yum -y install enca
Install enca on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install enca
using dnf
by running the following command:
sudo dnf -y install enca
How To Uninstall enca on CentOS 7
To uninstall only the enca
package we can use the following command:
sudo dnf remove enca
References
Summary
In this tutorial we learn how to install enca
on CentOS 7 using yum
and dnf
.