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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux