6.6. Uploading Content to Custom RPM Repositories
You can upload individual RPMs and source RPMs to custom RPM repositories. You can upload RPMs using the Satellite web UI or the Hammer CLI. You must use the Hammer CLI to upload source RPMs.
Procedure
- In the Satellite web UI, click Content > Products.
- Click the name of the custom product.
- In the Repositories tab, click the name of the custom RPM repository.
- Under Upload Package, click Browse… and select the RPM you want to upload.
- Click Upload.
To view all RPMs in this repository, click the number next to Packages under Content Counts.
For CLI Users
Enter the following command to upload an RPM:
# hammer repository upload-content \ --id repo_ID \ --path /path/to/example-package.rpm
Enter the following command to upload a source RPM:
# hammer repository upload-content \ --content-type srpm \ --id repo_ID \ --path /path/to/example-package.src.rpm
When the upload is complete, you can view information about a source RPM by using the commands
hammer srpm list
andhammer srpm info --id srpm_ID
.