Skip to content

Uninstall geolite2-city Package

An XCCDF Rule

Description

The geolite2-city package can be removed with the following command:
$ sudo dnf remove geolite2-city

Rationale

geolite2-city is part of the GeoLite2 database packages, offering geolocation databases and tooling.

ID
xccdf_org.ssgproject.content_rule_package_geolite2-city_removed
Severity
Low
Updated

Remediation Templates

A Puppet Snippet

include remove_geolite2-city
class remove_geolite2-city {
  package { 'geolite2-city':
    ensure => 'purged',
  }
}

An Ansible Snippet

- name: Ensure geolite2-city is removed
  package:
    name: geolite2-city
    state: absent
  tags:
  - disable_strategy

script:kickstart

package remove geolite2-city

script:bootc

dnf remove geolite2-city

Anaconda Pre-Install Instructions

package --remove=geolite2-city

A Shell Script

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