[Pulp-list] Question on filters - Pulp v2

Michael Hrivnak mhrivnak at redhat.com
Wed Dec 12 17:05:51 UTC 2012

Yes. Just search for content in the repo, then use the same syntax for the copy operation. This is one of the advantages of v2's unified search API. Example with the CLI:

1) Do a search for content within a repo:
  $ pulp-admin rpm repo content rpm --repo-id=repo1 --str-eq='name=foo'

2) Use the same search arguments on the copy command
  $ pulp-admin rpm repo copy rpm --from-repo-id=repo1 --to-repo-id=repo2 --str-eq='name=foo'

Using the REST API, the concept is the same.


----- Original Message -----
From: "Partha Aji" <paji at redhat.com>
To: pulp-list at redhat.com
Sent: Wednesday, December 12, 2012 11:35:52 AM
Subject: [Pulp-list] Question on filters - Pulp v2

I was trying to copy contents of a repo to another repo via filters based of https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/content/associate.html.
Its seems to work okay, albeit a bit confusing when dealing with dependencies and regex cases. I was wondering if pulp had something similar to a "simulate copy" call to tell me what packages exactly will get copied over (including dependencies).

Pulp-list mailing list
Pulp-list at redhat.com

More information about the Pulp-list mailing list