Skip to content

Uninstall nfs-utils Package

An XCCDF Rule

Description

The nfs-utils package can be removed with the following command:

$ sudo yum erase nfs-utils

Rationale

nfs-utils provides a daemon for the kernel NFS server and related tools. This package also contains the showmount program. showmount queries the mount daemon on a remote host for information about the Network File System (NFS) server on the remote host. For example, showmount can display the clients which are mounted on that host.

ID
xccdf_org.ssgproject.content_rule_package_nfs-utils_removed
Severity
Low
References
Updated



Remediation - Anaconda Pre-Install Instructions


package --remove=nfs-utils

Remediation - Ansible

- name: Ensure nfs-utils is removed
  package:
    name: nfs-utils
    state: absent
  tags:
  - disable_strategy

Remediation - Puppet

include remove_nfs-utils

class remove_nfs-utils {
  package { 'nfs-utils':
    ensure => 'purged',
  }

Remediation - Shell Script


# CAUTION: This remediation script will remove nfs-utils
#	   from the system, and may remove any packages
#	   that depend on nfs-utils. Execute this
#	   remediation AFTER testing on a non-production
#	   system!