If you want to create custom rpms and install then with the usual automated dependency management you’ll need your own yum repository. This is just the RPMS and metadata in the format of static xml files served by a webserver.
First you need a GPG key to sign your packages.
1 2 3 4 5 6 7 8
You won’t need the random generator if you do this on a desktop, but on a headless system I found I needed this. These actions will store a private key in your keyring, and a public key in the specified file.
Build your rpm
First configure rpm to use the key you just added to your key ring, checing you don’t oveerwrite earlier configuration).
1 2 3
Now build your RPM (assuming you are already setup to do this).
Setup the Yum Repo
Setup apache, make the directory structure, with teh repo files. This can be the same or a different server to your build machine.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Configure the system that will use the custom repo
Copy over the GPG key, and import it into the rpm database.
Configure yum to use the new repo.
1 2 3 4
Now you should be able to install your custom packages with regular yum commands. When you update your rpms just re-run the createrepo command to update the metadata.