Tuesday, 11 January 2022

How to resolve -bash: showmount: command not found on CentOS 8

showmount command: It is a command-line utility and provide ability to manage NFS share. Its needs separate installation by default this package is not available in CentOS 8 minimal.
This article describes How to resolve -bash: showmount: command not found on CentOS 8 System.  
[root@linuxcnf ~]# showmount -e
-bash: showmount: command not found
[root@linuxcnf ~]#
As per the above output, the package is not installed on the system which provides showmount command. Follow the below steps to resolve:
Step 1. Installing package: Run the following command to install nfs-utils which provides showmount command:
[root@linuxcnf ~]# dnf install nfs-utils –y
  gssproxy-0.8.0-19.el8.x86_64              keyutils-1.5.10-9.el8.x86_64
  libverto-libevent-0.3.0-5.el8.x86_64      nfs-utils-1:2.3.3-46.el8.x86_64
  python3-pyyaml-3.12-12.el8.x86_64         quota-1:4.04-14.el8.x86_64
  quota-nls-1:4.04-14.el8.noarch            rpcbind-1.2.5-8.el8.x86_64
[root@linuxcnf ~]#
Step 2. Verification: Run the following command to validate/verify the installation.
[root@linuxcnf ~]# showmount -e
Export list for
/nfsshare *
[root@linuxcnf ~]#
Done!!! Now the command “showmount” is available on CentOS 8 system.

No comments:

Post a Comment