How To Install ncompress on Ubuntu 22.04

In this tutorial we learn how to install ncompress on Ubuntu 22.04. ncompress is original Lempel-Ziv compress/uncompress programs

Introduction

In this tutorial we learn how to install ncompress on Ubuntu 22.04.

What is ncompress

ncompress is:

This package provides the original compress and uncompress programs that used to be the de facto UNIX standard for compressing and uncompressing files. These programs implement a fast, simple Lempel-Ziv (LZW) file compression algorithm.

For Debian, the standard uncompress program is installed as uncompress.real, to avoid conflicting with other packages.

This package also contains a copyright notice and a brief discussion of the LZW patent history (written by one of the original authors) in the file /usr/share/doc/ncompress/README.Debian.

There are three methods to install ncompress on Ubuntu 22.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 ncompress Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ncompress using apt-get by running the following command:

sudo apt-get -y install ncompress

Install ncompress Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ncompress using apt by running the following command:

sudo apt -y install ncompress

Install ncompress 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 ncompress using aptitude by running the following command:

sudo aptitude -y install ncompress

How To Uninstall ncompress on Ubuntu 22.04

To uninstall only the ncompress package we can use the following command:

sudo apt-get remove ncompress

Uninstall ncompress And Its Dependencies

To uninstall ncompress and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove ncompress

Remove ncompress Configurations and Data

To remove ncompress configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge ncompress

Remove ncompress configuration, data, and all of its dependencies

We can use the following command to remove ncompress configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ncompress

References

Summary

In this tutorial we learn how to install ncompress package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.