How To Install libjs-ansi-up on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libjs-ansi-up
on Ubuntu 20.04.
What is libjs-ansi-up
libjs-ansi-up is:
This library provide function that takes a stream of text and transforms it into proper HTML with colors. It does this by buffering the data and performing multiple passes over the stream. Each time it consumes data, it may or may not emit HTML. This HTML will always be proper HTML.
This package provides library in format, suitable for client-side programming.
There are three methods to install libjs-ansi-up
on Ubuntu 20.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 libjs-ansi-up Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libjs-ansi-up
using apt-get
by running the following command:
sudo apt-get -y install libjs-ansi-up
Install libjs-ansi-up Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libjs-ansi-up
using apt
by running the following command:
sudo apt -y install libjs-ansi-up
Install libjs-ansi-up 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 libjs-ansi-up
using aptitude
by running the following command:
sudo aptitude -y install libjs-ansi-up
How To Uninstall libjs-ansi-up on Ubuntu 20.04
To uninstall only the libjs-ansi-up
package we can use the following command:
sudo apt-get remove libjs-ansi-up
Uninstall libjs-ansi-up And Its Dependencies
To uninstall libjs-ansi-up
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libjs-ansi-up
Remove libjs-ansi-up Configurations and Data
To remove libjs-ansi-up
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libjs-ansi-up
Remove libjs-ansi-up configuration, data, and all of its dependencies
We can use the following command to remove libjs-ansi-up
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjs-ansi-up
References
Summary
In this tutorial we learn how to install libjs-ansi-up
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.