<div dir="ltr">It sounds like you want to use "remove-missing", which will remove local packages that are now missing from the remote repo.<div><br></div><div>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.</div><div><br></div><div>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!</div><div><br></div><div>Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 5:39 PM, Partha Aji <span dir="ltr"><<a href="mailto:paji@redhat.com" target="_blank">paji@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Here is the scenario.<br>
I synced a repo from some feed which has packages A1, B1.<br>
Now the feed got updated to packages A2, B1.<br>
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.<br>
Looking at <a href="https://github.com/pulp/pulp_rpm/blob/master/plugins/pulp_rpm/plugins/importers/yum/purge.py#L18" rel="noreferrer" target="_blank">https://github.com/pulp/pulp_rpm/blob/master/plugins/pulp_rpm/plugins/importers/yum/purge.py#L18</a> I notice 2 options "remove-missing" and "retain-old-count".<br>
1) Do you guys know which option is it.<br>
2) Can I use this option as a sync override, or specify it in an importer config per repo.<br>
<br>
Partha<br>
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
</blockquote></div><br></div>