== Make your HDA a Local Fedora and RPMFusion Free/NonFree Updates Repo ==
If you have multiple machines to update in your network, this may be ideal for you. It will allow you to use your HDA as a local Fedora/RPMFusion Updates repository (hereafter referred to as <strong><em>repo</em></strong>). This was developed on Fedora 12 platform.
Once the initial setup is complete, all repos will be updated nightly with any changes automatically. Then whenever you do an update to your HDA or Fedora clients, packages will be pulled from your HDA versus a Fedora mirror over the internet. This was developed on Fedora 12 platform, but should work on Fedora 14. I have built scripts Change all occurrences of "'''f12'''" and "'''Fedora 12'''" to do all the steps below "'''f14'''" and will post them here soon"'''Fedora 14'''" respectively.
=== Initial Repo Setup ===
This setup only needs to be done once. This will set up structure for all repos built for your HDA.
* Enable Create web app ([http://wiki.amahi.org/index.php/Advanced_Settings Advanced Settings in the Amahi Dashboard (Settings-->Settings] must be enabled on HDA) * Create a web app called <strongol>repo</strongli> using From the Amahi Dashboard (Applications--main page, select '''Apps''' at the top.</li>Web App)* Open a terminal window and become <strongli>rootChoose ''Webapps''</strongli> user:{{Code|su -}}* If you want <li>Select '''New Web App''' button at the URL bottom<strong/li><nowikili>http://Enter ''repo'' for the Name (ensure the path reflects the name correctly)</nowikili><li>Choose '''Create'''</strongli> available immediately, restart hdactl:{{Code|service hdactl restart}}</ol>* Generate [http://wiki.amahi.org/index.php/Open_Terminal_as_root Open a terminal as root] user and generate <strong>index.html</strong> (OPTIONAL) to 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):
... (continue with the other CD isos)</blockquote>
<br>
=== Fedora Updates Repo Configuration ===
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>
=== Client Repo Setup ===
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):
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.