How To Install pxz on Ubuntu 18.04

In this tutorial we learn how to install pxz on Ubuntu 18.04. pxz is parallel LZMA compressor using liblzma

Introduction

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

What is pxz

pxz is:

Parallel XZ is a compression utility that takes advantage of running LZMA compression of different parts of an input file on multiple cores and processors simultaneously. Its primary goal is to utilize all resources to speed up compression time with minimal possible influence on compression ratio.

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

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

sudo apt-get update

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

sudo apt-get -y install pxz

Install pxz Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pxz

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

sudo aptitude -y install pxz

How To Uninstall pxz on Ubuntu 18.04

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

sudo apt-get remove pxz

Uninstall pxz And Its Dependencies

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

sudo apt-get -y autoremove pxz

Remove pxz Configurations and Data

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

sudo apt-get -y purge pxz

Remove pxz configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pxz

References

Summary

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