Skip to main content

rpm-quickstart

Last updated on

Prerequisites

  • Ensure you have RPM CLI installed and configured on your local machine.
  • Ensure you have access to a Harness account with the appropriate permissions to create registries and connectors.

Create an RPM Artifact Registry

private rpm registry

This registry will serve as your private RPM registry within Harness.


Configure an Upstream Proxy (Optional)

An upstream proxy allows your registry to fetch RPM packages from external sources if they are not available locally.

Create an upstream proxy

  1. In the Artifact Registry module, click the dropdown next to New Artifact Registry and select Upstream Proxy.
  2. Choose RPM Registry as the proxy type.
  3. Enter an upstream proxy name.
  4. Enter your remote registry URL.
  5. Choose your Authentication method (Anonymous by default).
  6. Click Create Proxy to establish the connection.

Configure the upstream proxy in your registry

  1. In the Artifact Registry module, select an existing Artifact Registry.
  2. Select the Configuration tab.
  3. Under Advanced (Optional), select Configure Upstream.
  4. Select from the list of compatible proxies to add them to your registry.
  5. Click Save to save the configuration.
upstream proxy caching

If an RPM package isn’t found in your Harness registry, the upstream proxy fetches it from an external registry like RPM, reducing duplication and improving package resolution.


Setup Client

With your RPM registry created, you can now authenticate the RPM CLI with your Harness registry using YUM or DNF.