How To Install pmount on Rocky Linux 8

In this tutorial we learn how to install pmount on Rocky Linux 8. pmount is Enable normal user mount

Introduction

In this tutorial we learn how to install pmount on Rocky Linux 8.

What is pmount

pmount (“policy mount”) is a wrapper around the standard mount program which permits normal users to mount removable devices without a matching /etc/fstab entry. Be warned that pmount is installed setuid root.

We can use yum or dnf to install pmount on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install pmount.

Install pmount on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install pmount

Install pmount on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install pmount

How To Uninstall pmount on Rocky Linux 8

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

sudo dnf remove pmount

pmount Package Contents on Rocky Linux 8

/etc/pmount.allow
/usr/bin/pmount
/usr/bin/pumount
/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/1e1a7426c348a690d12972910a9a772d91111a
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/e7a42215ace9a930cf338922b1ecae62029da6
/usr/share/doc/pmount
/usr/share/doc/pmount/AUTHORS
/usr/share/doc/pmount/COPYING
/usr/share/doc/pmount/ChangeLog
/usr/share/doc/pmount/README.devel
/usr/share/locale/bs/LC_MESSAGES/pmount.mo
/usr/share/locale/ca/LC_MESSAGES/pmount.mo
/usr/share/locale/cs/LC_MESSAGES/pmount.mo
/usr/share/locale/de/LC_MESSAGES/pmount.mo
/usr/share/locale/el/LC_MESSAGES/pmount.mo
/usr/share/locale/en/LC_MESSAGES/pmount.mo
/usr/share/locale/en_AU/LC_MESSAGES/pmount.mo
/usr/share/locale/en_GB/LC_MESSAGES/pmount.mo
/usr/share/locale/es/LC_MESSAGES/pmount.mo
/usr/share/locale/et/LC_MESSAGES/pmount.mo
/usr/share/locale/eu/LC_MESSAGES/pmount.mo
/usr/share/locale/fa/LC_MESSAGES/pmount.mo
/usr/share/locale/fr/LC_MESSAGES/pmount.mo
/usr/share/locale/he/LC_MESSAGES/pmount.mo
/usr/share/locale/hr/LC_MESSAGES/pmount.mo
/usr/share/locale/hu/LC_MESSAGES/pmount.mo
/usr/share/locale/id/LC_MESSAGES/pmount.mo
/usr/share/locale/it/LC_MESSAGES/pmount.mo
/usr/share/locale/ko/LC_MESSAGES/pmount.mo
/usr/share/locale/ml/LC_MESSAGES/pmount.mo
/usr/share/locale/nb/LC_MESSAGES/pmount.mo
/usr/share/locale/nds/LC_MESSAGES/pmount.mo
/usr/share/locale/nl/LC_MESSAGES/pmount.mo
/usr/share/locale/pa/LC_MESSAGES/pmount.mo
/usr/share/locale/pl/LC_MESSAGES/pmount.mo
/usr/share/locale/pt/LC_MESSAGES/pmount.mo
/usr/share/locale/pt_BR/LC_MESSAGES/pmount.mo
/usr/share/locale/ro/LC_MESSAGES/pmount.mo
/usr/share/locale/ru/LC_MESSAGES/pmount.mo
/usr/share/locale/sk/LC_MESSAGES/pmount.mo
/usr/share/locale/sr/LC_MESSAGES/pmount.mo
/usr/share/locale/sv/LC_MESSAGES/pmount.mo
/usr/share/locale/te/LC_MESSAGES/pmount.mo
/usr/share/locale/tl/LC_MESSAGES/pmount.mo
/usr/share/locale/tr/LC_MESSAGES/pmount.mo
/usr/share/locale/vi/LC_MESSAGES/pmount.mo
/usr/share/locale/yi/LC_MESSAGES/pmount.mo
/usr/share/locale/zh_CN/LC_MESSAGES/pmount.mo
/usr/share/man/man1/pmount.1.gz
/usr/share/man/man1/pumount.1.gz

References

Summary

In this tutorial we learn how to install pmount on Rocky Linux 8 using yum and dnf.