Another note-to-self kind of post. Creating a custom repo on RedHat.
[root@localhost ~]# yum install createrepo
[root@localhost ~]# mkdir -p /opt/acc/repo
[root@localhost ~]# createrepo /opt/acc/repo/
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@localhost ~]# tree /opt/acc/repo/
/opt/acc/repo/
`-- repodata
|-- filelists.xml.gz
|-- other.xml.gz
|-- primary.xml.gz
`-- repomd.xml
Now adding this repo details to the repo-register.
[localrepo] name=Fedora Core $releasever - My Local Repo baseurl=file:///mnt/fc_local_repo/ enabled=1 gpgcheck=0 #gpgkey=file:///path/to/you/RPM-GPG-KEY
You can also serve the base url over http in which case the protocol would change from file:/// to http:// or https:///
