How To Install zpaq on Ubuntu 18.04

In this tutorial we learn how to install zpaq on Ubuntu 18.04. zpaq is maximum reference compressor for ZPAQ open standard

Introduction

In this tutorial we learn how to install zpaq on Ubuntu 18.04.

What is zpaq

zpaq is:

PAQ familily is a series of open source data compression archivers that have evolved through collaborative development to top rankings on several benchmarks measuring compression ratio although at the expense of speed and memory usage.

This package includes ZPAQ, a proposed standard format for highly compressed data that allows new compression algorithms to be developed without breaking compatibility with older programs.

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

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

sudo apt-get update

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

sudo apt-get -y install zpaq

Install zpaq Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install zpaq

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

sudo aptitude -y install zpaq

How To Uninstall zpaq on Ubuntu 18.04

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

sudo apt-get remove zpaq

Uninstall zpaq And Its Dependencies

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

sudo apt-get -y autoremove zpaq

Remove zpaq Configurations and Data

To remove zpaq configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge zpaq

Remove zpaq configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge zpaq

References

Summary

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