#!/bin/sh # (C)2006 Veit Wahlich RELEASE_CURRENT=`head -n1 /etc/fedora-release` RELEASE_REQUIRED="Fedora Core release 5 (Bordeaux)" if [ "$RELEASE_CURRENT" != "$RELEASE_REQUIRED" ]; then echo "Your system does not seem to be running Fedora Core 5. Aborting." >&2 exit 1 fi CURRENT_UID=`id -u` if [ "$CURRENT_UID" -gt "0" ]; then echo "You need to run this script as root. Aborting." >&2 exit 1 fi echo cat <<__EOF This script will download and install release RPMs (and RPM GPG keys) for the following add-on repositories to Fedora Core 5 and Fedora Extras 5: - The Cru RPM Repository - Livna RPM Repository - FreshRPMs Repository - ATrpms Repository - MPlug Macromedia Repository After installing the release RPMs, your system will be configured to access the listed repositories via yum, most release RPMs also install apt support. __EOF echo echo "If you want this script to continue installing the release RPMs," echo -n "type 'YES' and press Enter: " read i if [ "$i" != "YES" ]; then echo "You did not enter YES. Aborting." >&2 exit 1 fi echo echo "Downloading and installing the release RPMs..." cat <<__EOF | xargs rpm -Uhv --force --nosignature http://mirror.naturidentisch.de/packages/fc5/cru-release/cru-release-fc5-1.cru.i386.rpm http://mirror.naturidentisch.de/packages/fc5/.other-releases/livna-release-5.rpm http://mirror.naturidentisch.de/packages/fc5/.other-releases/freshrpms-release-1.1-1.fc.noarch.rpm http://mirror.naturidentisch.de/packages/fc5/.other-releases/atrpms-package-config-106-1.rhfc5.at.i386.rpm http://mirror.naturidentisch.de/packages/fc5/macromedia-release/macromedia-release-fc5-2.cru.i386.rpm __EOF echo echo "Downloading and installing RPM GPG keys missing in release RPMs..." cat <<__EOF | xargs rpm --import http://mirror.naturidentisch.de/packages/fc5/.other-releases/RPM-GPG-KEY-atrpms __EOF if [ "$?" -gt "0" ]; then echo "An error occured while downloading or installing the release RPMs." >&2 echo "Ensure your system is connected to the internet and repeat." >&2 exit 1 fi echo echo "Your system is now configured for all the repositories listed above." echo "Have fun!" echo exit 0