How To Install libgsecuredelete-dev on Ubuntu 18.04

In this tutorial we learn how to install libgsecuredelete-dev on Ubuntu 18.04. libgsecuredelete-dev is wrapper library for the secure-delete tools - development files

Introduction

In this tutorial we learn how to install libgsecuredelete-dev on Ubuntu 18.04.

What is libgsecuredelete-dev

libgsecuredelete-dev is:

GSecureDelete is a GObject wrapper library for the secure-delete tools (srm, sfill, sswap and smem), aiming to ease use of these tool from programs by providing a simple but complete API to invoke them.

This package provides the necessary development libraries and include files to develop and compile programs that use GSecureDelete.

There are three methods to install libgsecuredelete-dev on Ubuntu 18.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 libgsecuredelete-dev Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libgsecuredelete-dev

Install libgsecuredelete-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgsecuredelete-dev

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

sudo aptitude -y install libgsecuredelete-dev

How To Uninstall libgsecuredelete-dev on Ubuntu 18.04

To uninstall only the libgsecuredelete-dev package we can use the following command:

sudo apt-get remove libgsecuredelete-dev

Uninstall libgsecuredelete-dev And Its Dependencies

To uninstall libgsecuredelete-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libgsecuredelete-dev

Remove libgsecuredelete-dev Configurations and Data

To remove libgsecuredelete-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libgsecuredelete-dev

Remove libgsecuredelete-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgsecuredelete-dev

References

Summary

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