SV-280942r1165181_rule
V-280942
SRG-OS-000437-GPOS-00194
RHEL-10-200000
CAT II
10
Configure RHEL 10 to remove all software components after updated versions have been installed.
Edit the file "/etc/dnf/dnf.conf" by adding or editing the following line:
clean_requirements_on_remove=True
Verify RHEL 10 removes all software components after updated versions have been installed 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 "True", this is a finding.
V-280942
False
RHEL-10-200000
Verify RHEL 10 removes all software components after updated versions have been installed 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 "True", this is a finding.
M
5733