Show URL of published content-view

Problem: Trying to find a hammer command to show the URL of the latest published version of a content view. For the repository URL, I can get that with:

hammer repository info --id <repoid> --fields "Published at" | awk '{ print $3 }'

But can’t seem to find a similar command for the associated content view. Does anyone know how to get that?

Expected outcome: hammer command returns URL of latest published version of a content view.

Foreman and Proxy versions: foreman 3.0, katello 4.2.1

Foreman and Proxy plugin versions:

Distribution and version: CentOS 7.9

Other relevant data:

Let me explain what I am trying to accomplish. Maybe I am going about it incorrectly?

I have an rpm, opencl-filesystem, in the EPEL repository. It does not exist in the EPEL content view. I’m trying to figure out why. I wanted a command line method to list packages in a repository and packages in a content view so that I could compare. Doing it through the gui is a pain-in-the arse.

Hello @bradawk!

I’m not sure if we have anything like this for hammer, the interesting thing is we do return repo urls within the UI’s API if you:

Navigate to chrome dev tools >
reload the content view/repositories page >
click network tab in dev tools >
expand ‘’/katello/api/v2/repositories" or just “Show All” >
click the preview tab for the json output.

Also, this would be a good feature candidate to add to Hammer.
If you’d like, please create a feature issue on redmine for this!

Hope that helps!

If you don’t already have an account you can create one here:

I added Bug #34535

Another thing I’m trying to do that is related to this is compare the rpms in two different versions of the same content view. We have just two life cycle environments, dev & prod. Our project manager wanted me to update Nvidia packages and push to both environments. I did that in dev, but did not want to promote to prod until I figured out why the version presented to the prod life cycle was already a version behind dev. If there was a command line to list all of the rpms in a given version of a content-view, it would be very easy to see what the differences were. However, I can’t find any such command. Trying to compare many thousands of rpms in a gui is nearly impossible.

We don’t have the GUI compare feature yet but it is planned for release in 4.6 as a tech preview. This is currently being worked on : Feature #35220: CVVersion Compare - add support for different content types - Katello - Foreman