How retain_package_versions and sync-policy works

Hello,

I do pulp rpm repository sync with additive or mirror_content_only policy.
There are also retain_package_versions on rpm repository definition.
How the two condition work together?

Is retain_package_versions only applied with additive?

Thanks in advance

1 Like

That’s right. retain_package_versions only applies when you are always adding packages to a repository. This setting will limit how many older versions of a package are kept in the new repository version being created.

That is especially the old repository version (being immutable for all intent and purpose) will still contain the old package versions until deleted (manually or by means of retain_repo_versions).

Thanks for the clarifications :slight_smile: