How To Install libzstd1 on Ubuntu 20.04

In this tutorial we learn how to install libzstd1 on Ubuntu 20.04. libzstd1 is fast lossless compression algorithm fast lossless compression algorithm

Introduction

In this tutorial we learn how to install libzstd1 on Ubuntu 20.04.

What is libzstd1

libzstd1 is:

Zstd, short for Zstandard, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level compression ratio.

This package contains the shared library. Task: minimal

Package: libzstd1 Architecture: amd64 Version: 1.4.4+dfsg-3 Multi-Arch: same Priority: required Section: libs Source: libzstd Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Med Packaging Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 700 Depends: libc6 (>= 2.14) Filename: pool/main/libz/libzstd/libzstd1_1.4.4+dfsg-3_amd64.deb Size: 236880 MD5sum: 105dc15bc3c2dd89691288f3adb71db6 SHA1: a9e97a9d002edb5b4fe72e353f91e5acd19b6873 SHA256: 431fbd5fbefc800840f4635493f2ee7b480b982727d8c16fb875fa4b82a2b0ef Homepage: https://github.com/facebook/zstd Description-en: fast lossless compression algorithm Zstd, short for Zstandard, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level compression ratio.

This package contains the shared library. Task: minimal

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

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

sudo apt-get update

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

sudo apt-get -y install libzstd1

Install libzstd1 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libzstd1

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

sudo aptitude -y install libzstd1

How To Uninstall libzstd1 on Ubuntu 20.04

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

sudo apt-get remove libzstd1

Uninstall libzstd1 And Its Dependencies

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

sudo apt-get -y autoremove libzstd1

Remove libzstd1 Configurations and Data

To remove libzstd1 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libzstd1

Remove libzstd1 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libzstd1

References

Summary

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