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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux