How do I get all the latest stuff for Fedora using apt/yum?

This page lists the apt, yum, and up2date repository settings (configuration files) for the Fedora Core 3 (Heidelberg) releases on x86 boxes. It assumes you already have up2date, yum, or apt installed.

Last updated: $Date: 2005/06/01 22:29:17 $. Please send updates/corrections to repos@xades.com.

Contents: Yum setup - Apt setup - up2date setup - Mirrors - Advanced - General help

Mirrors

Make sure you check the Fedora Core Mirrors list and the Fedora Extras Mirrors list to get the closest mirror to you if you are in Europe, Asia, or are having problems with the below North American choice I made.

The yum repositories

Yum is shipped with Fedora, so you will probably be using this by default.
Replace your entire yum.conf with just the below lines. The file is called /etc/yum.conf :

# Yum config file from http://www.xades.com/proj/fedora_repos.html
# Put this file at /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d


[fedora-extras]
name=Fedora Extras $releasever - $basearch - Extra Packages
baseurl=ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora/$releasever/$basearch/yum/stable/
	http://download.fedora.us/fedora/fedora/$releasever/$basearch/yum/stable/
gpgcheck=1
failovermethod=priority

[livna-stable]
name=Livna 3rd party packages with questionable (in USA) licenses -- use at your own risk
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable

###############-----
# these below entries should be redundant to the files in /etc/yum.repos.d, but are here just in case
###############-----
#
#[base]
#name=Fedora Core $releasever - $basearch - Base
##baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
#enabled=1
#gpgcheck=1
#
#[updates-released]
#name=Fedora Core $releasever - $basearch - Released Updates
##baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
#enabled=1
#gpgcheck=1
#
#[updates-testing]
#name=Fedora Core $releasever - $basearch - Test Updates
##baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-testing-fc$releasever
#enabled=0
#gpgcheck=1
#
#[development]
#name=Fedora Core $releasever - Development Tree
##baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide
#enabled=0
#

I don't use yum so would appreciate updates/corrections to this section sent to repos@xades.com.

The apt repositories

Replace your entire apt.conf with just the below lines. The file is called /etc/apt/sources.list :

# Apt sources.list from http://www.xades.com/proj/fedora_repos.html
# Put this file at /etc/apt/sources.list and change "download.fedora.us"
#   to a mirror from http://www.fedora.us/wiki/FedoraMirrorList to be
#   friendly to our friends from Hawaii
#
# List of available apt repositories available from ayo.freshrpms.net.
# This file should contain an uncommented default suitable for your system.
#
# See http://ayo.freshrpms.net/ for a list of other repositories and mirrors.
#
# $Id: fedora_repos.html,v 1.30 2005/06/01 22:29:17 martin Exp $

# Fedora Linux 3
rpm http://ayo.freshrpms.net fedora/linux/3/i386 core updates freshrpms
#rpm http://ayo.freshrpms.net fedora/linux/3/i386 tupdates
#rpm-src http://ayo.freshrpms.net fedora/linux/3/i386 core updates freshrpms
#rpm-src http://ayo.freshrpms.net fedora/linux/3/i386 tupdates

# Fedora Linux Development
#rpm http://ayo.freshrpms.net fedora/linux/development/i386 core
#rpm http://ayo.freshrpms.net fedora/linux/1/i386 freshrpms
#rpm-src http://ayo.freshrpms.net fedora/linux/development/i386 core
#rpm-src http://ayo.freshrpms.net fedora/linux/1/i386 freshrpms

### Dag RPM Repository for Fedora Core 3
rpm 		http://wftp.tu-chemnitz.de/pub/linux/dag fedora/3/en/i386 dag
rpm 		http://ftp.heanet.ie/pub/freshrpms/pub/dag fedora/3/en/i386 dag
rpm 		http://apt.sw.be fedora/3/en/i386 dag

#Fedora.us
#rpm 		http://download.fedora.us/fedora/ fedora/3/i386 stable unstable testing
#rpm-src 	http://download.fedora.us/fedora/ fedora/3/i386 stable unstable testing

# Livna 3rd party packages with questionable (in USA) licenses -- use at your own risk
rpm 		http://rpm.livna.org/ fedora/3/i386 stable unstable testing
rpm-src 	http://rpm.livna.org/ fedora/3/i386 stable unstable testing

# ATrpms for Fedora Core 3
# Possible sections: at-stable, at-good, at-testing, at-bleeding
rpm		http://apt.atrpms.net fedora/3/en/i386 at-stable
rpm-src		http://apt.atrpms.net fedora/3/en/i386 at-stable

#newrpms.sunsite.dk
rpm http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc3 newrpms
rpm-src http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc3 newrpms

Use these repositories with up2date/RHN

You can use the above apt/yum repositories together with RHN/up2date. Replace your up2date sources file with the below.
The file is /etc/sysconfig/rhn/sources :

# up2date sources config from http://www.xades.com/proj/fedora_repos.html
# Put this file at /etc/sysconfig/rhn/sources and change "download.fedora.us"
#   to a mirror from http://www.fedora.us/wiki/FedoraMirrorList to be
#   friendly to our friends from Hawaii

yum fedora-core-3 http://download.fedora.redhat.com/pub/fedora/linux/core/3/$ARCH/os/ 
yum updates-released-fc3 http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/$ARCH/

yum-mirror fedora-core-3 http://fedora.redhat.com/download/up2date-mirrors/fedora-core-3
yum-mirror updates-released-fc3 http://fedora.redhat.com/download/up2date-mirrors/updates-released-fc3

#yum updates-testing http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/3/$ARCH/
#yum-mirror updates-testing http://fedora.redhat.com/download/up2date-mirrors/updates-testing-fc3

#yum development http://download.fedora.redhat.com/pub/fedora/linux/core/development/$ARCH/
#yum-mirror development http://fedora.redhat.com/download/up2date-mirrors/fedora-core-rawhide

### A local directory full of packages (a "dir" repo). For example:
#dir my-favorite-rpms /var/spool/RPMS/

#DAG's repos
apt dag 	http://apt.sw.be fedora/3/en/i386 dag

# Livna 3rd party packages with questionable (in USA) licenses -- use at your own risk
apt livna	http://rpm.livna.org/ fedora/3/i386 stable unstable testing

# ATrpms for Fedora Core 3
apt ATrpms	http://apt.atrpms.net fedora/3/en/i386 at-stable

#newrpms.sunsite.dk
apt newrpms	http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc3 newrpms

What does all this stuff mean?

Apt and yum are package dependency mangement tools that can help you stay up to date with the latest published Fedora Core software. You can learn more about apt for RPM-based systems at http://freshrpms.net/apt.

To learn more about Fedora, refer to The main Fedora web page.

Some people may have issues because they don't have the right GPG key -- if you see yum or up2date complaining about "bad GPG key", import the right ones with these commands:

rpm --import /usr/share/doc/fedora-release-*/*GPG-KEY*
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
This is mainly an issue if you are upgrading to Fedora from one of the Fedora test releases.

Advanced Stuff

The apt, yum, and configuration files above are minimal because most people won't need anything more. For those of us who run our own repositories for offline or installation use, the following more verbose files are modified versions of the standard versions so you can see how to do some more complicated repository management.

I need help with this section! Tell me what cool stuff you're doing with repository configuration...the documentation on the config files is a bit sparse, so I figured I would post people's ideas here in one of the example files below:

Example files:

Contributed APT files with CCRMA repository (Steven Black):

Back

Return to my other projects.