Linux Administrator

showmount : command not found on CentOS/RHEL

Sometime you get the error “showmount : command not found” if you check the nfs mount directory on your system.

In this article I will show you how you can install showmount command on your CentOS/RHEL system.

Install showmount

Follow the below command to install the showmount command on CentOS/RHEL system.

# yum install showmount
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * epel: mirror.compevo.com
 * openvz-kernel-rhel6: mirror.steadfast.net
 * openvz-utils: mirror.steadfast.net
 * rpmforge: mirror.lstn.net
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.2.3-75.el6_9 will be installed
--> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: keyutils >= 1.4-4 for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Running transaction check
---> Package keyutils.x86_64 0:1.4-5.el6 will be installed
---> Package nfs-utils-lib.x86_64 0:1.1.5-13.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================
 Package                             Arch                         Version                                   Repository                     Size
================================================================================================================================================
Installing:
 nfs-utils                           x86_64                       1:1.2.3-75.el6_9                          updates                       336 k
Installing for dependencies:
 keyutils                            x86_64                       1.4-5.el6                                 base                           39 k
 nfs-utils-lib                       x86_64                       1.1.5-13.el6                              base                           71 k

Transaction Summary
================================================================================================================================================
Install       3 Package(s)

Total download size: 446 k
Installed size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): keyutils-1.4-5.el6.x86_64.rpm                                                                                     |  39 kB     00:00
(2/3): nfs-utils-1.2.3-75.el6_9.x86_64.rpm                                                                               | 336 kB     00:00
(3/3): nfs-utils-lib-1.1.5-13.el6.x86_64.rpm                                                                             |  71 kB     00:00
------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                            34 MB/s | 446 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : keyutils-1.4-5.el6.x86_64                                                                                                    1/3
  Installing : nfs-utils-lib-1.1.5-13.el6.x86_64                                                                                            2/3
  Installing : 1:nfs-utils-1.2.3-75.el6_9.x86_64                                                                                            3/3
  Verifying  : keyutils-1.4-5.el6.x86_64                                                                                                    1/3
  Verifying  : nfs-utils-lib-1.1.5-13.el6.x86_64                                                                                            2/3
  Verifying  : 1:nfs-utils-1.2.3-75.el6_9.x86_64                                                                                            3/3

Installed:
  nfs-utils.x86_64 1:1.2.3-75.el6_9

Dependency Installed:
  keyutils.x86_64 0:1.4-5.el6                                        nfs-utils-lib.x86_64 0:1.1.5-13.el6

Complete!

Verify

Run the below command to verify it.

# showmount -e

You will get some output like below.

Export list for localhost.localhost:
/opt/share 192.168.0.5
Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment