using urpmi and chroot

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

using urpmi and chroot

Postby kemra102 » Sep 15th, '11, 09:16

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.
kemra102
 
Posts: 5
Joined: Sep 4th, '11, 20:14
Location: Derbyshire, UK.

Re: using urpmi and chroot

Postby marja » Sep 18th, '11, 17:32

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.
User avatar
marja
 
Posts: 547
Joined: Aug 22nd, '11, 20:50


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron