message = [[Amahi 8]] is the latest stable release.}}
----
{{NeedsUpdate}}
</ol>
* [http://wiki.amahi.org/index.php/Open_Terminal_as_root Open a terminal as root] user and generate <strong>index.html</strong> (allow repo packages to be viewed via web browser):
{{Code| cd /var/hda/web-apps/repo/html vi index.html}}
and add the following:
{{Text|Text= <pre><html>
<nowiki><UL></nowiki>
<nowiki><LI></nowiki><A HREF="f12">f12</A>
<nowiki></UL></nowiki>
</html>}}</pre>
* Make directory to hold all repo files, then create symbolic link to the directory:
{{Code|<pre>mkdir -p /var/hda/files/yum/f12
cd /var/hda/web-apps/repo/html
ln -s /var/hda/files/yum/f12}}</pre>
* If you locate the files in a different tree, you will need the appropriate permissions. This is especially important if you build the tree by extracting from a .iso file using Nautilus. Change to a point in the tree and use:
{{Code| <nowiki>find . -type d | xargs chmod 755</nowiki>}}
* Disable current Fedora/RPMFusion Update repos for your HDA, then invoke local repo (Skip last 2 lines if RPMFusion repos <strong>NOT</strong> installed):
sed -i 's/enabled<nowiki>=</nowiki>1/enabled<nowiki>=</nowiki>0/g' /etc/yum.repos.d/rpmfusion-free-updates.repo
sed -i 's/enabled<nowiki>=</nowiki>1/enabled<nowiki>=</nowiki>0/g' /etc/yum.repos.d/rpmfusion-nonfree-updates.repo}}</pre>
=== Fedora Base OS Repo Configuration (Optional) ===
For this example, we will be doing the Fedora Base OS for 32-bit.
* Make directory to hold all Fedora i386 base os:
{{Code| mkdir -p /var/hda/files/yum/f12/i386/os}}
* Build the OS tree
<blockquote>a. From the Fedora DVD:
{{Code| cp -a /mount/..../* /var/hda/files/yum/f12/i386/os}}
b. From the DVD iso:
{{Code|<pre>mkdir -p /mnt/iso
mount -o loop .../Fedora-12-i386-DVD.iso /mnt/iso
cp -a /mnt/iso/* /var/hda/files/yum/f12/i386/os
umount /mnt/iso}}</pre>
c. From the CD isos (Note that the CD #1 can be used for a network install, see below):
{{Code|<pre>mkdir -p /mnt/iso
mount -o loop .../Fedora-12-i386-disc1.iso /mnt/iso
cp -a /mnt/iso/* /var/hda/files/yum/f12/i386/os
mount -o loop .../Fedora-12-i386-disc2.iso /mnt/iso
cp -an /mnt/iso/* /var/hda/files/yum/f12/i386/os
umount /mnt/iso}}</pre>
... (continue with the other CD isos)</blockquote>
<br>
For this example, we will be doing Fedora Updates for 32-bit. It can be adapted for 64-bit by changing all occurrences of <strong><em>i386</em></strong> to <strong><em>x86_64</em></strong>. You may want to use one of the rsync mirrors listed [http://mirrors.fedoraproject.org here]. If so, replace all occurrences of <strong><em>rsync://mirrors.kernel.org</em></strong> with the new mirror.
* Schedule nightly task to synchronize (downloads new updates) Fedora mirror with HDA repo. This will only download new udpates to your HDA, so it shouldn't take long. Recommend you stagger scheduled time for each repo added by 1 hour.:
For this example, we will be doing RPMFusion Free updates for 32-bit. It can be adapted for NonFree by changing all occurrences of <strong><em>free</em></strong> to <strong><em>nonfree</em></strong> and/or to 64-bit by changing all occurrences of <strong><em>i386</em></strong> to <strong><em>x86_64</em></strong>.
* Make directory to hold all RPMFusion Free i386 Updates:
* Schedule nightly task to synchronize (downloads new updates) RPMFusion mirror with HDA repo. This will only download new udpates to your HDA, so it shouldn't take long. Recommend you stagger scheduled time for each repo added by 1 hour.:
* All RPMFusion Free i386 Updates will now be retrieved locally from your HDA.
<br>
This will need to be completed on each Fedora 12 Client in your network.
* Disable current Fedora/RPMFusion Update repos for client, then invoke local repos (Skip last 2 lines if RPMFusion repos <strong>NOT</strong> installed):
sed -i 's/enabled<nowiki>=</nowiki>1/enabled<nowiki>=</nowiki>0/g' /etc/yum.repos.d/rpmfusion-free-updates.repo
sed -i 's/enabled<nowiki>=</nowiki>1/enabled<nowiki>=</nowiki>0/g' /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
yum clean all}}</pre>
=== Third Party Application ===
This is application that allows you to maintain your own local repo server. It is currently set for CentOS but can be modified for Fedora. See [http://www.dotsharp.com.br/softwares/yum-repo-sync-english.html yum-repo-sync] for more info.