How To Install liblzma5 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install liblzma5
on Ubuntu 20.04.
What is liblzma5
liblzma5 is:
XZ is the successor to the Lempel-Ziv/Markov-chain Algorithm compression format, which provides memory-hungry but powerful compression (often better than bzip2) and fast, easy decompression.
The native format of liblzma is XZ; it also supports raw (headerless) streams and the older LZMA format used by lzma. (For 7-Zip’s related format, use the p7zip package instead.) Task: minimal
Package: liblzma5 Architecture: amd64 Version: 5.2.4-1 Multi-Arch: same Priority: required Section: libs Source: xz-utils Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Jonathan Nieder [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 259 Depends: libc6 (>= 2.17) Breaks: liblzma2 (« 5.1.1alpha+20110809-3~) Filename: pool/main/x/xz-utils/liblzma5_5.2.4-1_amd64.deb Size: 92352 MD5sum: 223533a347dc76a8cc9445cfc6146ec3 SHA1: 8ed14092fb1caecfebc556fda0745e1e74ba5a67 SHA256: 01020b5a0515dbc9a7c00b464a65450f788b0258c3fbb733ecad0438f5124800 Homepage: https://tukaani.org/xz/ Description-en: XZ-format compression library XZ is the successor to the Lempel-Ziv/Markov-chain Algorithm compression format, which provides memory-hungry but powerful compression (often better than bzip2) and fast, easy decompression.
The native format of liblzma is XZ; it also supports raw (headerless) streams and the older LZMA format used by lzma. (For 7-Zip’s related format, use the p7zip package instead.) Task: minimal
There are three methods to install liblzma5
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 liblzma5 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install liblzma5
using apt-get
by running the following command:
sudo apt-get -y install liblzma5
Install liblzma5 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install liblzma5
using apt
by running the following command:
sudo apt -y install liblzma5
Install liblzma5 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 liblzma5
using aptitude
by running the following command:
sudo aptitude -y install liblzma5
How To Uninstall liblzma5 on Ubuntu 20.04
To uninstall only the liblzma5
package we can use the following command:
sudo apt-get remove liblzma5
Uninstall liblzma5 And Its Dependencies
To uninstall liblzma5
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove liblzma5
Remove liblzma5 Configurations and Data
To remove liblzma5
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge liblzma5
Remove liblzma5 configuration, data, and all of its dependencies
We can use the following command to remove liblzma5
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liblzma5
References
Summary
In this tutorial we learn how to install liblzma5
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.