Changes

From Amahi Wiki
Jump to: navigation, search
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.
* Make directory to hold all Fedora i386 Updates:
{{Code| mkdir -p /var/hda/files/yum/f12/i386/updates}}
* Download Fedora i386 Updates from repo mirror (may take a while):
{{Code| rsync -avrt --delete --exclude<nowiki>=</nowiki>debug/ --exclude<nowiki>=</nowiki>drpms/ rsync://mirrors.kernel.org/fedora/updates/12/i386/ /var/hda/files/yum/f12/i386/updates}}
* Build local repo structure index:
{{Code| yum -y install createrepo createrepo /var/hda/files/yum/f12/i386/updates}}
* Generate <strong>fedora-updates-i386.repo</strong> (point to your HDA local repository):
{{Code| vi /etc/yum.repos.d/fedora-updates-i386.repo}}
and add the following:
{{Text|Text=<pre>[fedora-updates-i386-local]
name=Fedora f12 - i386 - Updates
failovermethod=priority
baseurl=<nowiki>http://repo/f12/i386/updates</nowiki>
enabled=1
gpgcheck=0}}</pre>
* 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.:
{{Code| crontab -e}}
and add the following line:
{{Text|Text= 0 1 * * * rsync -auv --delete --exclude=debug/ --exclude=drpms/ rsync://mirrors.kernel.org/fedora/updates/12/i386/ /var/hda/files/yum/f12/i386/updates}}
* Refresh repo list.
{{Code| yum clean all}}
* All Fedora i386 Updates will now be retrieved locally from your HDA.
<br>
For a speeder Fedora install from your Repo server that is not prone to DVD or CD read errors (and will install up to the current update level!).
* Boot from either the Fedora DVD or CD #1. When presented with the install choices menu, press tab and append to the boot line:
{{Text|Text= askmethod}}
* When you get to the method screen, select URL and enter your repos base OS URL:
{{Link| <nowiki>http://repo/f12/i386/os}}</nowiki>
* When you reach the repositories page you can select the Update repository and point it to:
{{Link| <nowiki>http://repo/f12/i386/updates}}</nowiki>
<br>
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:
{{Code| mkdir -p /var/hda/files/yum/f12/i386/rpmfusion/free/updates}}
* Download RPMFusion Free Updates from repo mirror (may take a while):
{{Code| rsync -avrt --delete --exclude<nowiki>=</nowiki>debug/ --exclude<nowiki>=</nowiki>drpms/ rsync://download1.rpmfusion.org/rpmfusion/free/fedora/updates/12/i386/ /var/hda/files/yum/f12/i386/rpmfusion/free/updates}}
* Build local repo structure index:
{{Code| createrepo /var/hda/files/yum/f12/i386/rpmfusion/free/updates}}
* Generate <strong>fedora-rpmfusion-free-updates-i386</strong> (point to your HDA local repository):
{{Code| vi /etc/yum.repos.d/fedora-rpmfusion-free-updates-i386.repo}}
and add the following:
{{Text|Text=<pre>[fedora-rpmfusion-updates-i386-local]
name=Fedora 12 - RPMFusion - free - i386 - Updates
failovermethod=priority
baseurl=<nowiki>http://repo/f12/i386/rpmfusion/free/updates</nowiki>
enabled=1
gpgcheck=0}}</pre>
* 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.:
{{Code| crontab -e}}
and add the following line:
{{Text|Text=<pre>0 3 * * * rsync -auv --delete --exclude=debug/ --exclude=drpms/ rsync://download1.rpmfusion.org/rpmfusion/free/fedora/updates/12/i386/ /var/hda/files/yum/f12/i386/rpmfusion/free/updates}}</pre>
* Refresh repo list.
{{Code| yum clean all}}
* All RPMFusion Free i386 Updates will now be retrieved locally from your HDA.
<br>
12,424

edits