On Sun, 23 Jan 2005 16:13:56 +0100
Kaj Haulrich <[EMAIL PROTECTED]> wrote:

> On Sunday 23 January 2005 15:53, [EMAIL PROTECTED] wrote:
> > NEED THE URL OF THE URPMI UPDATES PLEASE
> 
********************************

Be root and create and run this script..works for me..MDK 10.0 official..call 
it any name you like..BE sure to be on line for it to work..

#!/bin/bash

ISCOZA=" "
ESLRACH=" "
CONTACTEL=" "
CONTRIB_SK=" "
UNININET=" "
SUNET=" "
PLF=" "

#**************************
echo; echo "       adding iscoza" ; echo

su - -c "urpmi.addmedia --update iscoza 
ftp://ftp.is.co.za/linux/distributions/mandrake/updates/10.0/RPMS/ with 
../base/synthesis.hdlist.cz"

if [ $? -ne 0 ]
then
ISCOZA="failed"
else
ISCOZA="success"
fi
#**************************
echo; echo "       adding eslrach" ; echo

su -c "urpmi.addmedia --update eslrahc http://www.eslrahc.com/10.0/ with 
hdlist.cz"

if [ $? -ne 0 ]
then
ESLRACH="failed"
else
ESLRACH="success"
fi
#**************************
echo; echo "       adding contactel" ; echo

su - -c "urpmi.addmedia --update contactel 
ftp://mandrake.contactel.cz/people/bibri/mandrake/9.2/RPMS/ with 
synthesis.hdlist.cz"

if [ $? -ne 0 ]
then
CONTACTEL="failed"
else
CONTACTEL="success"
fi
#**************************

echo; echo "       adding contrib-sk" ; echo

su - -c "urpmi.addmedia --update contrib-sk 
ftp://ftp.rediris.es/pub/linux/distributions/mandrakelinux/official/10.0/contrib/i586
 with ../../i586/Mandrake/base/synthesis.hdlist2.cz"

if [ $? -ne 0 ]
then
CONTRIB_SK="failed"
else
CONTRIB_SK="success"
fi
***************************
echo; echo "       adding uninet" ; echo

su - -c "urpmi.addmedia --update uninet 
ftp://ftp.uninett.no/linux/Mandrakelinux/stable/updates/10.0/RPMS/ with 
../base/synthesis.hdlist.cz"

if [ $? -ne 0 ]
then
UNINET="failed"
else
UNINET="success"
fi
#**************************
echo; echo "       adding sunet" ; echo

su - -c "urpmi.addmedia --update sunet 
ftp://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/official/updates/10.0/RPMS/
 with ../base/synthesis.hdlist.cz"

if [ $? -ne 0 ]
then
SUNET="failed"
else
SUNET="success"
fi
#**************************
echo; echo "       adding plf" ; echo

su - -c "urpmi.addmedia plf 
ftp://ftp.club-internet.fr/pub/linux/plf/mandrake/10.0 with synthesis.hdlist.cz"

if [ $? -ne 0 ]
then
PLF="failed"
else
PLF="success"
fi
#**************************
echo ; echo
echo "  ISCOZA     =  $ISCOZA"
echo "  ESLRACH    =  $ESLRACH"
echo "  CONTACTEL  =  $CONTACTEL"
echo "  CONTRIB_SK =  $CONTRIB_SK"
echo "  UNINET     =  $UNINET"
echo "  SUNET      =  $SUNET"
echo "  PLF        =  $PLF"
echo ; echo
#**************************
exit 0

----------------------------------------------------------------
When the above is successful then run this after creation..........

#!/bin/bash

ESLRAHC=" "
CONTRIB=" "
JPACKAGE=" "
MAIN=" "
UPDATES=" "
PLF=" "

#**************************

echo; echo "       updating synthesis  eslrahc" ; echo

su - -c "urpmi.update eslrahc"
if [ $? -ne 0 ]
then
ESLRAHC="failed"
else
ESLRAHC="success"
fi
#**************************
echo; echo "       updating synthesis  contrib" ; echo

su - -c "urpmi.update contrib"

if [ $? -ne 0 ]
then
CONTRIB="failed"
else
CONTRIB="success"
fi
#**************************
echo; echo "       updating synthesis  jpackage" ; echo

su - -c "urpmi.update jpackage"

if [ $? -ne 0 ]
then
JPACKAGE="failed"
else
JPACKAGE="success"
fi
#**************************
echo; echo "       updating synthesis  main" ; echo

su - -c "urpmi.update main"

if [ $? -ne 0 ]
then
MAIN="failed"
else
MAIN="success"
fi
#**************************
echo; echo "       updating synthesis  updates" ; echo

su - -c "urpmi.update updates"

if [ $? -ne 0 ]
then
UPDATES="failed"
else
UPDATES="success"
fi
#**************************
echo; echo "       updating synthesis  plf" ; echo

su - -c "urpmi.update plf"

if [ $? -ne 0 ]
then
PLF="failed"
else
PLF="success"
fi
#**************************
echo ; echo

echo "  ESLRAHC         =       $ESLRAHC"
echo "  CONTRIB         =       $CONTRIB"
echo "  JPACKAGE        =       $JPACKAGE"
echo "  MAIN            =       $MAIN"
echo "  UPDATES         =       $UPDATES"
echo "  PLF             =       $PLF"

echo ; echo
#**************************
exit 0

-------------------------------------------------------------

When the above is successful then run..this..be prepared for some long time on 
line if first time...

urpmi --auto-select  --noclean --wget -a

goodluck
-- 
Johan Sch
Registered linux user #333034
May this be a good day for learning

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to