FYI: Workaround for today's FC5 baseurl/mirrorlist problems

Jacques B. jjrboucher at gmail.com
Wed Oct 25 14:24:32 UTC 2006


IMPORTANT!!!!  In reviewing my code I noted a few mistakes in my paths
for the last two repos.  I had looked at the first repo after the
script and it looked fine.  I should have looked at the others.  If
you alread ran the script, as root simply copy the backup repos back
to the proper folder, delete the backup repos and the backup folder,
then run the new script below (as I indicated, the only changes are to
the paths for the last two sed commands).

#beginning of script
#backing up original repos
mkdir ~/repo.bak
cp /etc/yum.repos.d/fedora-core.repo ~/repo.bak/
cp /etc/yum.repos.d/fedora-extras.repo ~/repo.bak/
cp /etc/yum.repos.d/fedora-updates.repo ~/repo.bak/
cp /etc/yum.repos.d/fedora-updates-testing.repo ~/repo.bak/

#modifying fedora-core.repo
sed 's/fedora.redhat.com\/download\/mirrors\/fedora-core-$releasever/mirrors.fedoraproject.org\/mirrorlist?repo=core-$releasever$arch=$basearch/'
~/repo.bak/fedora-core.repo > /etc/yum.repos.d/fedora-core.repo

#modifying fedora-extras.repo
sed 's/fedora.redhat.com\/download\/mirrors\/fedora-extras-$releasever/mirrors.fedoraproject.org\/mirrorlist?repo=extras-$releasever$arch=$basearch/'
~/repo.bak/fedora-extras.repo > /etc/yum.repos.d/fedora-updates.repo >
/etc/yum.repos.d/fedora-extras.repo

#modifying fedora-updates.repo
sed 's/fedora.redhat.com\/download\/mirrors\/updates-released-fc$releasever/mirrors.fedoraproject.org\/mirrorlist?repo=updates-released-$releasever$arch=$basearch/'
~/repo.bak/fedora-updates.repo > /etc/yum.repos.d/fedora-updates.repo

#modifying fedora-updates-testing.repo
sed 's/fedora.redhat.com\/download\/mirrors\/updates-testing-fc$releasever/mirrors.fedoraproject.org\/mirrorlist?repo=updates-testing-$releasever$arch=$basearch/'
~/repo.bak/fedora-updates-testing.repo >
/etc/yum.repos.d/fedora-updates-testing.repo




More information about the fedora-list mailing list