STIGUI
V-230281CAT III — Low severitySV-230281r958936_rule

YUM must remove all software components after updated versions have been installed on RHEL 8.

Rule version RHEL-08-010440 · STIG v2 · 2026-05-20

Discussion

Previous versions of software components that are not removed from the information system after updates have been installed may be exploited by adversaries. Some information technology products may remove older versions of software automatically from the information system.

Check

Verify the operating system removes all software components after updated versions have been installed.

Check if YUM is configured to remove unneeded packages with the following command:

$ sudo grep -i clean_requirements_on_remove /etc/dnf/dnf.conf

clean_requirements_on_remove=True

If "clean_requirements_on_remove" is not set to either "1", "True", or "yes", commented out, or is missing from "/etc/dnf/dnf.conf", this is a finding.

Fix

Configure the operating system to remove all software components after updated versions have been installed.

Set the "clean_requirements_on_remove" option to "True" in the "/etc/dnf/dnf.conf" file:

clean_requirements_on_remove=True

Identifiers

Group ID
V-230281
Group title
SRG-OS-000437-GPOS-00194
Rule ID
SV-230281r958936_rule
Check ID
C-32950r567589_chk
Fix ID
F-32925r567590_fix