[Pulp-list] Question on purging stale rpms

Michael Hrivnak mhrivnak at redhat.com
Thu Jan 14 00:45:25 UTC 2016


It sounds like you want to use "remove-missing", which will remove local
packages that are now missing from the remote repo.

However, if the remote feed actually now has A1, A2, and B1, but you don't
care about A1 anymore, then set retain-old-count to 0. That will cause pulp
to keep zero old versions of each package; at the end of the sync, it would
remove A1 from the local repo, because A1 is older than A2.

You can specify these in the importer's json config file, save them in the
importer's config, or specify them in the override config with every sync
call you make. Pick your favorite!

Michael

On Wed, Jan 13, 2016 at 5:39 PM, Partha Aji <paji at redhat.com> wrote:

>
> Here is the scenario.
> I synced a repo from some feed which has packages A1, B1.
> Now the feed got updated to packages A2, B1.
> Now when I resync I need my repo to have A2, B1 (exact mirror). The
> default behaviour in pulp seems to be not touch local repo and hence it
> ends up having packages A1, A2, and B1. I know there is a way to override
> this and was trying to figure out the config option.
> Looking at
> https://github.com/pulp/pulp_rpm/blob/master/plugins/pulp_rpm/plugins/importers/yum/purge.py#L18
> I notice 2 options "remove-missing" and "retain-old-count".
> 1) Do you guys know which option is it.
> 2) Can I use this option as a sync override, or specify it in an importer
> config per repo.
>
> Partha
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20160113/beab9e87/attachment.htm>


More information about the Pulp-list mailing list