Skip to content

Djelibeybi/build-subscription-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building subscription-manager RPMs on Oracle Linux

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.

Requirements

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!

Building the RPMs

To build the RPMs, replace Jane Builder and [email protected] 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 <[email protected]>

Oracle Linux 7

cd oraclelinux7
./build-rhsm-ol7.sh

Note: The RPMs for Oracle Linux 7 are renamed slightly from upstream because Oracle obsoletes subscription-manager. In this case, the main RPM is named subscription-manager-el7 and it obsoletes all the packages that provide Spacewalk and ULN support.

Oracle Linux 8

cd oraclelinux8
./build-rhsm-ol8.sh

Oracle Linux 9

cd oraclelinux9
./build-rhsm-ol9.sh

License

Copyright (c) 2021, 2023 Avi Miller.

Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/

About

Build subscription-manager RPMs for Oracle Linux in a container

Resources

License

Stars

Watchers

Forks

Releases

No releases published