Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
* Ensure that Fedora updates are done after the DVD installation.
* Create "mount points" for use later.
<blockquote>{{Code<pre>|mkdir -p /media/optdrive
mkdir -p /media/usbdrive
mkdir -p /media/usbstick}}</pre></blockquote>
* Install the following packages.
<blockquote>{{Code|<pre>yum -y install system-config-kickstarts # graphical interface for making kickstart files
yum -y install pungi # tool to create anaconda based installation trees/isos
yum -y install createrepo # tool to refesh repo databases}}</pre></blockquote>
* Optionally install the following packages.
<blockquote>{{Code|<pre>yum -y install fedora-kickstarts # kickstarts used to compose the official Fedora Spins
# sample kickstarts stored at /usr/share/spin-kickstarts
yum -y install custom-kickstarts # kickstart files for Custom Spins
# sample kickstarts stored at /usr/share/spin-kickstarts/custom}}</pre></blockquote>
=== Local Fedora Repositories ===
* Start a "terminal session" and switch to the "root" user.
* Create local repository directory structures.
<blockquote>{{Code|<pre>mkdir -p /opt/fedora/f18/i386/basemkdir -p /opt/fedora/f18/i386/updates}}</pre></blockquote>
* Mount the Fedora DVD.
<blockquote>{{Code|<pre>mount -o loop /dev/sr0 /media/optdrive}}</pre></blockquote>
* Copy rpm packages to the local "base" repo directory structure.
<blockquote>{{Code|<pre>cp -av /media/optdrive/Packages/* /opt/fedora/f18/i386/base}}</pre></blockquote>
* Copy the main "comps xml" file to the local "base" repo directory structure.
<blockquote>{{Code|<pre>cp /media/optdrive/repodata/*comps*.xml /opt/fedora/f18/i386/base/comps.xml}}</pre></blockquote>
* The production Anaconda Installer for Fedora 18 has a bug that will not allow discs to be built. A "test" version is available that allows discs to be built.
* Go to the Fedora 18 URL "<nowiki>http://mirrors.kernel.org/fedora/updates/testing/18/i386/</nowiki>" and download the following Packages:<blockquote>{{Text|<pre>anaconda-18.37.12-1.fc18.i686.rpm
anaconda-dracut-18.37.12-1.fc18.noarch.rpm
anaconda-widgets-18.37.12-1.fc18.i686.rpm}}</pre></blockquote>
* Go to the "base", Packages, "a" directory and remove the following production Anaconda Installer packages:
<blockquote>{{Text|<pre>anaconda-18.37.11-1.fc18.i686.rpm
anaconda-dracut-18.37.11-1.fc18.noarch.rpm
anaconda-widgets-18.37.11-1.fc18.i686.rpm}}</pre></blockquote>
* Copy the downloaded "testing" Anaconda "version 12" packages to the "base", Packages, "a" directory.
* Go to the local "base" repo and generate the "base" repo files.
<blockquote>{{Code|<pre>cd /opt/fedora/f18/i386/base # go to the base package directory
createrepo . # refresh the "base" repo database
createrepo -g comps.xml . # refresh the comps.xml for group changes}}</pre></blockquote>
:Please notice the "dot" after createrepo, it's important.
* Populate the "updates" repo.
: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|<pre>cd /opt/fedora/f18/i386/updatescreaterepo .}}</pre></blockquote>
==== Create the "yum" Repository Files ====
* Start a terminal sessions and switch to the root user.
* Go to the /etc yum configuration directory.
<blockquote>{{Code|<pre>cd /etc/yum.repos.d}}</pre></blockquote>
* Using a text editor create the "f18-base-local.repo" file and insert the following text, and then save the file.
<blockquote>
{{Text|Text=<pre>[f18-base-local]
name=Fedora 18 local base repository
baseurl=file:///opt/fedora/f18/i386/base
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-18-primary
enabled=1}}</pre></blockquote>
* Using a text editor create the "f18-updates-local.repo" file and insert the following text, and then save the file.
<blockquote>
{{Text|Text=<pre>[f18-updates-local]
name=Fedora 18 local updates repository
baseurl=file:///opt/fedora/f18/i386/updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-18-primary
enabled=0}}</pre></blockquote>
'''PLEASE NOTE:''' The updates repository is disabled due to a Fedora 18 bugs (2 known bugs on Red Hat Bug Tracker) in the Anaconda Installer.
* Start a terminal sessions and switch to the root user.
* Enter the following commands.
<blockquote>{{Code|<pre>yum clean allyum repolist}}</pre></blockquote>
* Something like this with other stuff will be displayed.
<blockquote>
{{Text|Text=<pre>repo id
f18-base-local
f18-updates-local}}</pre></blockquote>
==== Refreshing a Repository ====
12,424

edits