<def-group>
  <definition class="compliance" id="clean_components_post_updating" version="1">
    {{{ oval_metadata("The clean_requirements_on_remove option should be used to ensure that old
      versions of software components are removed after updating.", rule_title=rule_title) }}}
    <criteria>
      <criterion comment="check value of clean_requirements_on_remove in {{{ pkg_manager_config_file }}}" test_ref="test_yum_clean_components_post_updating" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist" comment="check value of clean_requirements_on_remove in {{{ pkg_manager_config_file }}}" id="test_yum_clean_components_post_updating" version="1">
    <ind:object object_ref="object_yum_clean_components_post_updating" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_yum_clean_components_post_updating" comment="clean_requirements_on_remove set in {{{ pkg_manager_config_file }}}" version="1">
    <ind:filepath>{{{ pkg_manager_config_file }}}</ind:filepath>
    <ind:pattern operation="pattern match">^\s*clean_requirements_on_remove\s*=\s*(1|True|yes)\s*$</ind:pattern>
    <ind:instance datatype="int" operation="equals">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
