Story #4879
Updated by pulpbot over 2 years ago
**Ticket moved to GitHub**: "pulp/pulp_rpm/2216":https://github.com/pulp/pulp_rpm/issues/2216 ---- Add the possibility to query the file name ("location_href"?) of a package in the contents. This simplifies the use of jq as we get directly the good href with the use of a GET query ~~~ http :24817/pulp/api/v3/content/rpm/packages/?filename=name-version-release.arch.rpm ~~~ I prefer the query version than using jq ~~~ http :24817/pulp/api/v3/content/rpm/packages/ | jq -r '.results[] | select( .location_href == "name-version-release.arch.rpm")' ~~~ There could be a limitation when there are to much contents because the pagination prevents to look for all contents.