How to Install and Uninstall lvm2.x86_64 Package on Amazon Linux 2

Last updated: June 25,2024

1. Install "lvm2.x86_64" package

Please follow the instructions below to install lvm2.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install lvm2.x86_64

2. Uninstall "lvm2.x86_64" package

Please follow the step by step instructions below to uninstall lvm2.x86_64 on Amazon Linux 2:

$ sudo yum remove lvm2.x86_64 $ sudo yum autoremove

3. Information about the lvm2.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : lvm2
Arch : x86_64
Epoch : 7
Version : 2.02.187
Release : 6.amzn2.5
Size : 1.3 M
Repo : amzn2-core/2/x86_64
Summary : Userland logical volume management tools
URL : http://sources.redhat.com/lvm2
License : GPLv2
Description : LVM2 includes all of the support for handling read/write
: operations on physical volumes (hard disks, RAID-Systems, magneto
: optical, etc., multiple devices (MD), see mdadm(8) or even loop
: devices, see losetup(8)), creating volume groups (kind of virtual
: disks) from one or more physical volumes and creating one or more
: logical volumes (kind of logical partitions) in volume groups.