Is it possible to compare repository versions?

Can anyone tell me if there is a way in pulp to compare 2 versions of a repository and report the difference? For example, I have an RPM repository that is synced with Fedora EPEL. When I sync the repository, obviously a new version is created and the previous version is retained. How can I know what content actually changed between these two versions? I’d like to be able to produce a report on what new packages/versions are available in this version of the repository.

That one should be fairly easy since you are asking about adjacent versions. When you show the repository version (http GET <...>/api/v3/repositories/file/file/<...>/versions/2/) there will be a field called content_summary it will provide you with total numbers and with hrefs to all the added/removed content.

2 Likes