From Fedora Project Wiki

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

A simple check that the repodata (yum metadata) for a given repository is valid.


How to test

  1. open repodata/repomd.xml
  2. confirm that there is a <data> element with type="primary" or type="primary_db"
  3. confirm that there is a <data> element with type="filelists" or type="filelists_db"
  4. confirm that there is a <data> element with type="other" or type="other_db"
  5. confirm that there is a <data> element with type="group" or type="group_gz"
  6. For each element listed above, check that the file listed in the <location> element is:
    • present,
    • non-empty, and
    • matches the checksum listed in the <checksum> element

Expected Results

  1. repomd.xml exists
  2. repomd.xml contains entries for primary, filelists, group, and other metadata
  3. the files referenced in those entries are present, non-empty, and match the listed checksums