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:
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.
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!
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.