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 Templates

A Puppet Snippet

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

An Ansible Snippet

- name: Ensure nfs-utils is removed
  package:
    name: nfs-utils
    state: absent
  tags:
  - CCE-82932-5

script:kickstart

package remove nfs-utils

script:bootc

dnf remove nfs-utils

Anaconda Pre-Install Instructions

package --remove=nfs-utils

A 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!