1.345 ALMA-09-045120

Information

AlmaLinux OS 9 must remove all software components after updated versions have been installed.

GROUP ID: V-269453
RULE ID: SV-269453r1050336

Previous versions of software components that are not removed from the information system after updates have been installed may be exploited by some adversaries.

Solution

Configure AlmaLinux OS 9 to remove all software components after updated versions have been installed.

Run the following command to change the configuration of DNF:

$ dnf config-manager --setopt clean_requirements_on_remove=1 --save

See Also

https://workbench.cisecurity.org/benchmarks/27039