How to download an RPM package from Red Hat with a script, via API?

Solution Unverified - Updated -

Issue

We want to write a script to download RPMs from Red Hat portal site. RHSM-API(v1) seems to provide such things, details.

Looking at "package" section of the API web document, there is an API for download one RPM package at a time, using checksum. Although there is an API for downloading specific RPM, user need to specify which RPM to download using checksum of the file. In order to know the checksum of specific RPM, we want to use API. But the API doesn't allow us to do it in a easy way. What we expect is specify RPM package name as key, and get the specific file's checksum only. But what Red Hat currently provides is, download catalog 100 entry at a time only.

  • Is it supported by Red Hat the customer uses RHSM-API to download RPM?
  • If it is supported, how do I get checksum of specific RPM file using the API?
  • If currently no such API available, is it possible to do an enhancement request to Red Hat?
  • Once get checksum API is ready to use, customer hopes Red Hat to create a KB.
  • Is there other way to download RPMs using script?

Environment

  • RHSM API

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content