How To Install bashmount on CentOS 7

In this tutorial we learn how to install bashmount on CentOS 7. bashmount is A menu-driven bash script for mounting removable media

Introduction

In this tutorial we learn how to install bashmount on CentOS 7.

What is bashmount

bashmount is a menu-driven bash script that uses udisks2 to easily mount, unmount or eject removable devices without dependencies on any GUI or desktop environment. An extensive configuration file allows custom commands to be run on devices. The use of udisks2 is optional. The mount command can be used, or any other suitable back-end can be configured.

We can use yum or dnf to install bashmount on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install bashmount.

Install bashmount on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install bashmount using yum by running the following command:

sudo yum -y install bashmount

Install bashmount on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install bashmount using dnf by running the following command:

sudo dnf -y install bashmount

How To Uninstall bashmount on CentOS 7

To uninstall only the bashmount package we can use the following command:

sudo dnf remove bashmount

References

Summary

In this tutorial we learn how to install bashmount on CentOS 7 using yum and dnf.