How To Install enca on Debian 9
Introduction
In this tutorial we learn how to install enca
on Debian 9.
What is enca
enca is:
Enca is an Extremely Naive Charset Analyser. It detects the character set and the 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 supports Belarusian, Bulgarian, Croatian, Czech, Estonian, Hungarian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, Ukrainian, Chinese, and some multibyte encodings independently on language.
There are three methods to install enca
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install enca Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install enca
using apt-get
by running the following command:
sudo apt-get -y install enca
Install enca Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install enca
using apt
by running the following command:
sudo apt -y install enca
Install enca Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install enca
using aptitude
by running the following command:
sudo aptitude -y install enca
How To Uninstall enca on Debian 9
To uninstall only the enca
package we can use the following command:
sudo apt-get remove enca
Uninstall enca And Its Dependencies
To uninstall enca
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove enca
Remove enca Configurations and Data
To remove enca
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge enca
Remove enca configuration, data, and all of its dependencies
We can use the following command to remove enca
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge enca
Dependencies
enca have the following dependencies:
References
Summary
In this tutorial we learn how to install enca
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.