On Monday 13 February 2006 17:06, Miark wrote: > On Mon, 13 Feb 2006 16:53:03 -0500, Bryan wrote: > > Use Rsync to copy one of the mirrors to your local machine. > > Use the local machine as your source to upgrade/install, and > > voila, no fubar. > > .. > > If you really are looking for a solution, I will even share my > > scripts with you that already do this for me. > > Please share.
This bash script will download repositories for Mandriva 2006, currently and can be updated for other versions. #!/bin/sh #/usr/bin/rsync -auv --partial --delete --exclude '.*' ftp.sunet.se::Mandriva-official/2005/i586 /mnt/mandriva/official/2005/ /usr/bin/rsync -auv --partial --delete --exclude '.*' ftp.sunet.se::Mandriva-official/2006.0/i586 /mnt/mandriva/official/2006/ #/usr/bin/rsync -auv --partial --delete --exclude '.*' ftp.sunet.se::Mandriva-official/updates/LE2005 /mnt/mandriva/official/updates /usr/bin/rsync -auv --partial --delete --exclude '.*' ftp.sunet.se::Mandriva-official/updates/2006.0 /mnt/mandriva/official/updates/2006.0 #/usr/bin/rsync -auv --partial --delete --exclude '.*' ftp.sunet.se::Mandriva-official/iso/10.2/i586 /mnt/mandriva/iso /usr/bin/rsync -auv --partial --delete --exclude '.*' ftp.sunet.se::Mandriva-official/iso/2006.0/i586 /mnt/mandriva/iso/2006.0 I have turned off wordwrap to maintain the lines as is. You should view this with wordwrap turned off for cutting and pasting purposes. The lines that are commented out were originally used for 2005, I changed over to 2006 when I upgraded my machines. But, you can simply change those if you are using LE2005. The final entry is the target directory. Obviously, you need to change these to match your own system. I use a separate mount point to make sure that if I have space problems, I can simply allocate more space. Also, you can either download the ISO images locally, or turn that feature off. That would be the last line which can simply be commented out. My current mirror is ftp.sunet.se which is in Sweden and thus usually has light traffic at the time when I do my updates. YMMV and you can alter those lines to any repository that you would like by updating the first target. If you have trouble getting it to work, let me know and I will try to help. ____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
