How To Install ascii on Ubuntu 18.04
Introduction
In this tutorial we learn how to install ascii on Ubuntu 18.04.
What is ascii
ascii is:
The ascii utility provides easy conversion between various byte representations and the American Standard Code for Information Interchange (ASCII) character table. It knows about a wide variety of hex, binary, octal, Teletype mnemonic, ISO/ECMA code point, slang names, XML entity names, and other representations. Given any one on the command line, it will try to display all others. Called with no arguments it displays a handy small ASCII chart.
There are three methods to install ascii on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install ascii Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install ascii using apt-get by running the following command:
sudo apt-get -y install ascii
Install ascii Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install ascii using apt by running the following command:
sudo apt -y install ascii
Install ascii 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 Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install ascii using aptitude by running the following command:
sudo aptitude -y install ascii
How To Uninstall ascii on Ubuntu 18.04
To uninstall only the ascii package we can use the following command:
sudo apt-get remove ascii
Uninstall ascii And Its Dependencies
To uninstall ascii and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove ascii
Remove ascii Configurations and Data
To remove ascii configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge ascii
Remove ascii configuration, data, and all of its dependencies
We can use the following command to remove ascii configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ascii
References
Summary
In this tutorial we learn how to install ascii package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.