Changes

From Amahi Wiki
Jump to: navigation, search
* 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=debug/ --exclude=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=[fedora-updates-i386-local] name=Fedora f12 - i386 - Updates failovermethod=priority baseurl=<nowiki>http://repo/f12/i386/updates</nowiki> enabled=1 gpgcheck=0}}
* 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.
12,424

edits