Rule version PHTN-40-000161 · STIG v2 · 2026-08-26
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.
At the command line, run the following command:
# grep -i '^clean_requirements_on_remove' /etc/tdnf/tdnf.conf
Example result:
clean_requirements_on_remove=1
If "clean_requirements_on_remove" is not set to "true", "1", or "yes", this is a finding.
Navigate to and open:
/etc/tdnf/tdnf.conf
Add or update the following line:
clean_requirements_on_remove=1