SV-238370r654285_rule
V-238370
SRG-OS-000437-GPOS-00194
UBTU-20-010449
CAT II
10
Configure APT to remove all software components after updated versions have been installed.
Add or updated the following options to the "/etc/apt/apt.conf.d/50unattended-upgrades" file:
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
Verify is configured to remove all software components after updated versions have been installed with the following command:
$ grep -i remove-unused /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
If the "::Remove-Unused-Dependencies" and "::Remove-Unused-Kernel-Packages" parameters are not set to "true" or are missing or commented out, this is a finding.
V-238370
False
UBTU-20-010449
Verify is configured to remove all software components after updated versions have been installed with the following command:
$ grep -i remove-unused /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
If the "::Remove-Unused-Dependencies" and "::Remove-Unused-Kernel-Packages" parameters are not set to "true" or are missing or commented out, this is a finding.
M
5318