How To Install liblvm2cmd2.03 on Ubuntu 20.04

In this tutorial we learn how to install liblvm2cmd2.03 on Ubuntu 20.04. liblvm2cmd2.03 is LVM2 command library LVM2 command library

Introduction

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

What is liblvm2cmd2.03

liblvm2cmd2.03 is:

This package contains the lvm2cmd shared library. Task: server, cloud-image, ubuntu-live, kubuntu-live, xubuntu-live, lubuntu-live, ubuntustudio-dvd-live, ubuntukylin-live, ubuntu-mate-live, ubuntu-budgie-live

Package: liblvm2cmd2.03 Architecture: amd64 Version: 2.03.07-1ubuntu1 Multi-Arch: same Priority: optional Section: libs Source: lvm2 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian LVM Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2790 Depends: libaio1 (>= 0.3.93), libblkid1 (>= 2.24.2), libc6 (>= 2.28), libselinux1 (>= 1.32), libsystemd0 (>= 222), libudev1 (>= 183), dmeventd Filename: pool/main/l/lvm2/liblvm2cmd2.03_2.03.07-1ubuntu1_amd64.deb Size: 672892 MD5sum: c7f087151228c3e0c38d0d91337c491b SHA1: d028da3a84656e3b25c418fa1493540d100fce02 SHA256: fe6441061cb7e69c4711771e7bee26d35fe13cb5b44e4ea6b8150b42efc0fe47 Homepage: http://sources.redhat.com/lvm2/ Description-en: LVM2 command library This package contains the lvm2cmd shared library. Task: server, cloud-image, ubuntu-live, kubuntu-live, xubuntu-live, lubuntu-live, ubuntustudio-dvd-live, ubuntukylin-live, ubuntu-mate-live, ubuntu-budgie-live

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

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

sudo apt-get update

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

sudo apt-get -y install liblvm2cmd2.03

Install liblvm2cmd2.03 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install liblvm2cmd2.03 using apt by running the following command:

sudo apt -y install liblvm2cmd2.03

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

sudo aptitude -y install liblvm2cmd2.03

How To Uninstall liblvm2cmd2.03 on Ubuntu 20.04

To uninstall only the liblvm2cmd2.03 package we can use the following command:

sudo apt-get remove liblvm2cmd2.03

Uninstall liblvm2cmd2.03 And Its Dependencies

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

sudo apt-get -y autoremove liblvm2cmd2.03

Remove liblvm2cmd2.03 Configurations and Data

To remove liblvm2cmd2.03 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge liblvm2cmd2.03

Remove liblvm2cmd2.03 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge liblvm2cmd2.03

References

Summary

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