For the complete documentation index, see llms.txt. This page is also available as Markdown.

RPM

Get started with RPM packages in Harness Artifact Registry.

spinner

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

Create RPM Artifact Registry in Harness
  1. Navigate to the Artifact Registry module in your Harness project.

  2. Click on New Artifact Registry.

  3. In the Registry Type list, select RPM Registry.

  4. Provide a Registry Name.

    REGISTRY NAME

    This registry name must start with a letter and can only contain lowercase alphanumerics, _, . and -, and must be unique to your Harness Account.

  5. Optionally, add a Description and Labels for better organization.

  6. Choose visibility between Public and Private.

  7. Click Create Registry to finalize.

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

Create RPM Upstream Proxy in Harness Artifact Registry

Configure the upstream proxy in your registry

Configure RPM Upstream Proxy in Harness

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.

Configure YUM Client Registry Setup in Harness Artifact Registry
Configure RPM registry in Harness Artifact Registry with DNF
  • In your Harness RPM Artifact Registry, click Setup Client.

1. Configure Authentication

  1. Click Generate Token to generate an identity token for authentication.

INSTALLATION AND UPLOAD

Whether you use YUM or DNF, the process is similar

2. Install an RPM package

  1. Create or edit your .repo file:

YUM DEFAULT

YUM and DNF both default to the yum.repos.d directory.

  1. Add .repo file content:

  1. Clear your YUM or DNF cache:

  1. Install the RPM package:

3. Upload an RPM package

  1. Run the following cURL command with your package file:

  • Click Done to complete your client setup.


Last updated

Was this helpful?