Almost all the information that I needed to complete this task I received from the notes my professor Chris Tyler gave in class which are here:
Creating Repository InstructionsIn addition to these notes I had to make sure to change the ownership of my directory in /var/www/html, and I did this using the command "sudo chown -R Adam:Adam ." while in /var/www/html/ashiltsrepo.
To make this repository into an RPM you must first have a build root for RPMs if you do not already have one. To do this run the command
rpmdev-setuptreeand this will create a "~/rpmbuild" directory.
Next you must create a SPEC file or use and existing one. I got a sample of a repo spec file from this website
here. This website also has a whole walkthrough for creating a yum repo which is very clear and easy to follow. Put that spec file into your ~/rpmbuild/SPECS directory and edit the fields to fit your repo. Next create a "repoName.repo" file and place that ~/rpmbuild/SOURCES. My repo file looks like this
[ashilts]
name= ashilts repo for $releasever - $basearch
baseurl=http://scotland.proximity.on.ca/ashiltsrepo/
failovermethod=roundrobin
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ASHILTSAlong with this repo file should be the "RPM-GPG-KEY-'KEYNAME'" file that should have been made earlier from following the instructions in the links. After all these files are in place run the command
rpmbuild -ba ~/rpmbuild/SPECS/yourRepoSpec.specAfter this is done a RPM should be placed in your "~/rpmbuild/RPMS/" dir. I moved the file to my web directory "/var/www/html/ashiltsrepo" and made a simple web page with a link to the new rpm. Now anybody can download this rpm and install the rpms that I have packaged and uploaded to my server.
To Download My Repository click
HERE.Here is a picture of me downloading my repo:
LINKTo use your repo to download your rpms if they are already in other yum repo's that have higher significance yuo will have to use the command
yum install --disablerepo=fedora,updates "yourPackageName"
Under the disable repos switch you will have to add any repos that you have on your machine that has the package that you do not want to install from.
And this a picture of me downloading one of the rpms I built and put in my repo:
LINKThis should be it for setting up your repository, because mine works fine :)
Peace out