1.3. Community-Based SourcesBesides Debian Linux, there are a number of distributions and "rebuilds" backed by a community of developers and users. This list includes Fedora Linux, the community-based offering of Red Hat, along with other distributions, such as Slackware Linux. The most common current examples of rebuilds are the groups that have taken the source code from Red Hat Enterprise Linux and built their own binary packages and even downloadable CDs/DVDs. Note When I refer to a "rebuild," I'm referring to a distribution that is built from the source code of another distribution. This is in contrast to a "clone" which is an operating system that emulates the functionality of another while using different source code. For example, while Linux is a clone of Unix, CentOS-4 is a rebuild of Red Hat Enterprise Linux 4. 1.3.1. Fedora LinuxWhen Red Hat moved to a subscription model for its flagship RHEL distribution, it wanted to retain the support of the Linux community. For this reason, it started the Fedora Linux project. Red Hat has stated that Fedora Linux distributions will be released every 4 to 8 months, and it will be the testbed for future RHEL releases. As of this writing, the current version is Fedora Core 4, and we'll be using that version in our examples. As a community project, Fedora Linux does not have access to the Red Hat Network. However, as a RHEL testbed, it uses the same basic Update Agent as described earlier in this chapter. Therefore, Fedora Linux needed a community-based repository and update tool. The basic repositories are listed at fedora.redhat.com/download/mirrors. The basic update tool is the tool associated with Yellowdog Linux, yum. Before you can start the update process, you'll need to import the Fedora GPG key into your update system. As it's already available in the /usr/share/rhn directory, all you need to do is run: rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora If you're using Fedora Linux, you should update the files in the /etc/yum.repos.d directory. The default version of this directory includes six files:
These files include two variables, $releasever and $basearch. They refer to the release version of Fedora Core and the CPU version, respectively. My version of this file in Fedora Core 4 points to random mirrors. The first time I ran yum, this file pointed my computer to a repository in Denmark. As I am in the USA, that is not what I want. So I'll want to change each of the files in the /etc/yum.repos.d directory. For example, if I wanted to use the mirror at North Carolina State University at ftp://ftp.linux.ncsu.edu/, I'd comment out the mirrorlist command in each of the six files and substitute in the following files:
You should update these files with the mirror-based repositories of your choice. It's OK to have more than one repository listed in each of the /etc/yum.repos.d configuration files. We'll explore this process in more detail in Chapter 2. 1.3.2. Red Hat RebuildsThere are several different groups that have rebuilt the Red Hat Enterprise Linux source code. This is allowable because Red Hat has released the source code for almost all RHEL packages under the GPL or related open source licenses. Before release, each of these groups has modified the source code to remove Red Hat trademarks. While there are several versions of RHEL 4, the developers behind the rebuilds have configured a generic rebuild, which can be configured as a server or workstation. While these rebuilds generally support 32- and 64-bit x86 systems, support for other architectures varies. Some of the groups behind RHEL rebuilds include the following:
A more complete list of RHEL rebuilds is available at www.linuxmafia.com/faq/RedHat/rhel-forks.html. |