Skip to content

Uninstall kea Package

An XCCDF Rule

Description

If the system does not need to act as a DHCP server, the kea package can be uninstalled.

Rationale

Removing the DHCP server ensures that it cannot be easily or accidentally reactivated and disrupt network operation.

ID
xccdf_org.ssgproject.content_rule_package_kea_removed
Severity
Medium
References
Updated

Remediation Templates

A Puppet Snippet

include remove_kea
class remove_kea {
  package { 'kea':
    ensure => 'purged',
  }
}

An Ansible Snippet

- name: Ensure kea is removed
  package:
    name: kea
    state: absent
  tags:
  - disable_strategy

script:kickstart

package remove kea

script:bootc

dnf remove kea

Anaconda Pre-Install Instructions

package --remove=kea

A Shell Script

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