This repository contains the Dockerfile and build-rshm.sh files to automatically
build the appropriate subscription-manager RPMs for Oracle Linux 7, 8 and 9.
A host machine that has a relatively recent version of Docker installed. I've tested this on Oracle Linux, macOS and Windows (using Docker Desktop).
If you want to use GPG to sign the binary RPMs, export your public and private
keys and concatenate them into ./gpg/key.asc under each of ./oraclelinux7,
./oraclelinux8 and ./oraclelinux9. You will also need to place your key
passphrase in ./gpg/passphrase.
NOTE: remember to delete these files afterwards!
To build the RPMs, replace Jane Builder and jane@builder.com in the example
below with your actual name and email address as stored in your GPG key.
If GPG_NAME_EMAIL doesn't match your key, the packages will not be signed.
export GPG_NAME_EMAIL="Jane Builder <jane@builder.com>cd oraclelinux7
./build-rhsm-ol7.shNote: The RPMs for Oracle Linux 7 are renamed slightly from upstream because Oracle obsoletes
subscription-manager. In this case, the main RPM is namedsubscription-manager-el7and it obsoletes all the packages that provide Spacewalk and ULN support.
cd oraclelinux8
./build-rhsm-ol8.shcd oraclelinux9
./build-rhsm-ol9.shCopyright (c) 2021, 2023 Avi Miller.
Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/