RPM
Get started with RPM packages in Harness Artifact Registry.
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
Navigate to the Artifact Registry module in your Harness project.
Click on New Artifact Registry.
In the Registry Type list, select RPM Registry.
Provide a Registry Name.
Optionally, add a Description and Labels for better organization.
Choose visibility between Public and Private.
Click Create Registry to finalize.
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
In the Artifact Registry module, click the dropdown next to New Artifact Registry and select Upstream Proxy.
Choose RPM Registry as the proxy type.
Enter an upstream proxy name.
Enter your remote registry URL.
Choose your Authentication method (
Anonymousby default).Click Create Proxy to establish the connection.
Configure the upstream proxy in your registry
In the Artifact Registry module, select an existing Artifact Registry.
Select the Configuration tab.
Under Advanced (Optional), select Configure Upstream.
Select from the list of compatible proxies to add them to your registry.
Click Save to save the configuration.
Setup Client
With your RPM registry created, you can now authenticate the RPM CLI with your Harness registry using YUM or DNF.
In your Harness RPM Artifact Registry, click Setup Client.
1. Configure Authentication
Click Generate Token to generate an identity token for authentication.
2. Install an RPM package
Create or edit your
.repofile:
Add
.repofile content:
Clear your YUM or DNF cache:
Install the RPM package:
3. Upload an RPM package
Run the following cURL command with your package file:
Click Done to complete your client setup.
Last updated
Was this helpful?