Creating new Pulp Repos which are not mirrored from the web
Lets assume I have created a package called drinda. I don't have any mirrors from the web I can source this from, I simply have a single RPM containing the software
Log into Pulp (requires a session to be established, by default, once per week)
pulp-admin login -u admin -p password
Create a blank repository
pulp-admin rpm repo create --repo-id=drinda --relative-url=oem/drinda/centos/7/x86_64 --serve-http=true --serve-https=false
Upload the file from /root into pulp
pulp-admin rpm repo uploads rpm --repo-id=drinda --file=/root/drinda-2.48.3-1.el7.centos.x86_64.rpm
Publish the repo
pulp-admin rpm repo publish run --repo-id=drinda
Update the repo metadata
For this example, we are using a higher level repo called "oem" containing lots of individual packages. This saves us from needing to establish lots of repo definition files for all the clients, instead all the packages live under the OEM directory tree.
cd /var/lib/pulp/published/yum/http/repos/oem/ createrepo --update -v .