The 'pre' attribute is responsible to tell the rpm client that a package is a prerequisite for another package upon installation.
For example, if package a depends on package b, it means that package b must be installed before a.
Therefore, the package will have an attribute 'pre' with value 1 to let rpm know that it is required to be installed first.
Example file which contain this attribute:
Reference to the createrepo code where the pre is taken from the primary dump:
Reference to the changelog when this feature was added in createrepo:
1. Download the following binary from Centos repository.
2. Downloaded the matching repodata primary.xml.gz from here.
3. Extract the xml file from the primary.xml.gz and notice this xml contains 'pre' attribute with value '1'.
4. Deploy the .rpm file to a local repository in Artifactory and wait for the metadata to be generated.
5. Once generated, download the primary.xml.gz which was generated and extract the xml file, you will notice that the 'pre' attribute is missing.
The impact is that sometimes the installation fails due to the order the zypper client try to install the package due to missing metadata.
I attached the original primary xml file and the one generated by Artifactory for comparison.