How To Install utfcheck on Kali Linux
Introduction
In this tutorial we learn how to install utfcheck on Kali Linux.
What is utfcheck
utfcheck is:
The utfcheck program examines a text file and prints a summary of what the file contains: ASCII, UTF-8, UTF-16 (either big-endian or little-endian based on an initial Byte Order Mark), or binary data. ASCII and UTF-8 files are processed further; UTF-16 and binary files are not. For a UTF-8 file, the summary includes whether or not the file begins with the Unicode Byte Order Mark (U+FEFF). Any following data encountered that is not well-formed ASCII or UTF-8 Unicode is considered to be binary data; upon reading such data the input file is considered not to be a proper text file and the program exits with an error status.
The utfcheck program returns an exit status of EXIT_SUCCESS if the text file was well-formed, and EXIT_FAILURE otherwise.
There are three methods to install utfcheck on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install utfcheck Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install utfcheck using apt-get by running the following command:
sudo apt-get -y install utfcheckInstall utfcheck Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install utfcheck using apt by running the following command:
sudo apt -y install utfcheckInstall utfcheck Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install utfcheck using aptitude by running the following command:
sudo aptitude -y install utfcheckHow To Uninstall utfcheck on Kali Linux
To uninstall only the utfcheck package we can use the following command:
sudo apt-get remove utfcheckUninstall utfcheck And Its Dependencies
To uninstall utfcheck and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove utfcheckRemove utfcheck Configurations and Data
To remove utfcheck configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge utfcheckRemove utfcheck configuration, data, and all of its dependencies
We can use the following command to remove utfcheck configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge utfcheckDependencies
utfcheck have the following dependencies:
References
Summary
In this tutorial we learn how to install utfcheck package on Kali Linux using different package management tools: apt, apt-get and aptitude.