How To Install system-config-lvm on Debian 9

In this tutorial we learn how to install system-config-lvm on Debian 9. system-config-lvm is utility for graphically configuring Logical Volumes

Introduction

In this tutorial we learn how to install system-config-lvm on Debian 9.

What is system-config-lvm

system-config-lvm is:

System-config-lvm provides a graphical interface to the LVM tools (and related utilities, including fsck and resize2fs) which is good for non-emergency storage administration. It enables you to manage your logical volume and filesystem configuration with a few mouse clicks, and it prevents potentially- disasterous command-line mistakes such as reducing a logical volume size before reducing the filesystem contained within that volume.

(One word of warning: system-config-lvm does not recognize RAID elements as being in use, and therefore lists them as “Uninitialized Entities”. If you are using a LVM-on-RAID configuration, system-config-lvm will let you wipe out RAID elements by making them into PVs. Be careful!)

There are three methods to install system-config-lvm on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install system-config-lvm Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install system-config-lvm

Install system-config-lvm Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install system-config-lvm using apt by running the following command:

sudo apt -y install system-config-lvm

Install system-config-lvm 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install system-config-lvm using aptitude by running the following command:

sudo aptitude -y install system-config-lvm

How To Uninstall system-config-lvm on Debian 9

To uninstall only the system-config-lvm package we can use the following command:

sudo apt-get remove system-config-lvm

Uninstall system-config-lvm And Its Dependencies

To uninstall system-config-lvm and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove system-config-lvm

Remove system-config-lvm Configurations and Data

To remove system-config-lvm configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge system-config-lvm

Remove system-config-lvm configuration, data, and all of its dependencies

We can use the following command to remove system-config-lvm configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge system-config-lvm

Dependencies

system-config-lvm have the following dependencies:

References

Summary

In this tutorial we learn how to install system-config-lvm package on Debian 9 using different package management tools: apt, apt-get and aptitude.