Page 1 of 1

using urpmi and chroot

PostPosted: Sep 15th, '11, 09:16
by kemra102
I am currently trying to set up a Mageia chroot and had a question regarding the usage of urpmi.addmedia to set the repos to be used. Currently I am using this guide as a reference: http://mageia.org/wiki/doku.php?id=chroot_howto

This guide uses this command to set the Core, Non-Free and related update repositories for Cauldron using a specific mirror:

Code: Select all
urpmi.addmedia --distrib --urpmi-root /mnt/chroot/cauldron ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/i586


Now my knowledge of urpmi is severely lacking and what I need help with is how I run a command like the above but instead of manually specifying the mirror the closest one is automatically selected? The repositories used need to stay the same but I need this for Mageia 1 also not cauldron.

Re: using urpmi and chroot

PostPosted: Sep 18th, '11, 17:32
by marja
You might want to try:

Code: Select all
# urpmi.addmedia --distrib --urpmi-root /mnt/chroot/cauldron --mirrorlist http://mirrors.mageia.org/api/cauldron.i586.list


and

Code: Select all
# urpmi.addmedia --distrib --urpmi-root /mnt/chroot/mageia1 --mirrorlist http://mirrors.mageia.org/api/mageia.1.i586.list


Both for i586, replace i586 with x86_64 if necessary.

I don't know whether it works, though, I never tried.