Changes

From Amahi Wiki
Jump to: navigation, search
m
==== Construct the Repositories ====
* Start a "terminal session" and switch to the "root" user.
* Create local repository directory structures.
<blockquote>{{Code|mkdir -p /opt/fedora/f18/i386/base
mkdir -p /opt/fedora/f18/i386/updates}}</blockquote>
* Mount the Fedora DVD.
<blockquote>{{Code|mount -o loop /dev/sr0 /media/optdrive}}</blockquote>
* Copy rpm packages to the local "base" repo directory structure.
<blockquote>{{Code|cp -av /media/optdrive/Packages/* /opt/fedora/f18/i386/base}}</blockquote>
* Copy the main "comps xml" file to the local repo directory structure.
<blockquote>{{Code|cp /media/optdrive/repodata/*comps*.xml /opt/fedora/f18/i386/base/comps.xml}}</blockquote>
* Install the "createrepo" utility.
<blockquote>{{Code|yum -y install createrepo}}</blockquote>
* Go to the local "base" repo and generate the "base" repo files.
<blockquote>{{Code|cd /opt/fedora/f18/i386/base<br>
createrepo .}}</blockquote>
:Please notice the "dot" after createrepo, it's important.
* Populate the "updates" repo.
 
/bin/rsync -auvrt --delete --exclude=debug/ --exclude=drpms/ rsync://mirrors.kernel.org/fedora/updates/18/i386/
/opt/fedora/f18/i386/updates
:Please note this will take several hours to complete. Do it at night and check the next day.
* Go to "updates" repo and generate the "updates" repo files.
<blockquote>{{Code|cd /opt/fedora/f18/i386/updates<br>
createrepo .}}</blockquote>
==== Test the Repositories ====