How To Install libcompress-lzf-java on Ubuntu 18.04

In this tutorial we learn how to install libcompress-lzf-java on Ubuntu 18.04. libcompress-lzf-java is Ning-compress-LZF

Introduction

In this tutorial we learn how to install libcompress-lzf-java on Ubuntu 18.04.

What is libcompress-lzf-java

libcompress-lzf-java is:

Compression codec for LZF encoding for particularly encoding/decoding, with reasonable compression. Compressor is basic Lempel-Ziv codec, without Huffman (deflate/gzip) or statistical post-encoding.

There are three methods to install libcompress-lzf-java 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 libcompress-lzf-java Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libcompress-lzf-java

Install libcompress-lzf-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcompress-lzf-java using apt by running the following command:

sudo apt -y install libcompress-lzf-java

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

sudo aptitude -y install libcompress-lzf-java

How To Uninstall libcompress-lzf-java on Ubuntu 18.04

To uninstall only the libcompress-lzf-java package we can use the following command:

sudo apt-get remove libcompress-lzf-java

Uninstall libcompress-lzf-java And Its Dependencies

To uninstall libcompress-lzf-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libcompress-lzf-java

Remove libcompress-lzf-java Configurations and Data

To remove libcompress-lzf-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcompress-lzf-java

Remove libcompress-lzf-java configuration, data, and all of its dependencies

We can use the following command to remove libcompress-lzf-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcompress-lzf-java

References

Summary

In this tutorial we learn how to install libcompress-lzf-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.