Borsenkow Andrej wrote:
> 
> >
> > One of my remote machines (8.1) is 2 hours away, with only 31.2kb
> modem
> > access;
> > so I loaded the ISO images onto the HD figuring I could install
> proggies
> > remotely.  I'm trying to install gnucash for the user.  Gnucash has a
> load
> > of
> > dependencies, so I thought urpmi would ease the process...
> >
> > I tried:
> > # mount -o loop /home/ISO/Mandrake81-cd1-inst.i586.iso /mnt/cd1
> > # urpmi.addmedia cdrom1 file:///mnt/cd1 with Mandrake/base/hdlist1.cz
> > [snip]
> 
> Wrong (two times). First error is, URL points to RPMs location in this
> case /mnt/cd1/Mandrake/RPMS

To quote the man page:

    Local drive or NFS:

        urpmi.addmedia <name> file://<path> with <relative path of hdlist>
           Where <name> is your reference for the media (e.g. Myrpms).
           <path> is the location of the rpm directory on your machine.

So, you're correct about the URL; after an initial read, I focused on just the
syntax which mentions "<relative path of hdlist>".  I suppose this should simply
read:

        urpmi.addmedia <name> file://<rpms path> with <hdlist filename>

but the URL parsing should be changed to allow "file:///mnt/..." unless there is
never likely to be any confusion with "//mnt/..." entries I noticed in an
/etc/fstab...

> > (likewise for CD2 and CD3)
> >
> > "file:///mnt..." because the docs say "file://<path>" and <path> is
> > "/mnt/cd..."; hence "///".
> >
> 
> Wrong second time. Urpmi knows that path is absolute. Adding third slash
> result in extra double slashes which usually does not hurt, but ...

As a user, I should not have to know that urpmi assUmes an absolute path; it
should follow UR* conventions.

> > Even after deleting the default /dev/cdrom stuff from
> /etc/urpmi/urpmi.cfg,
> > urpmi.addmedia still insists on setting it up to use /dev/cdrom...
> >
> 
> Have you removed old media?

If you mean the actual CDs; yes, there are no Mdk CDs at this remote site.
 
> > Finally edited /var/lib/urpmi/list.cdrom1 to fix the broken paths from
> > "/mnt/cd1/" to "/mnt/cd1/Mandrake/RPMS/" (see below).
> 
> You told it to use this path.

Then it should have given consistent results...

not:

>   For some reason,
> > unlike
> > CD1,  CD2 in /var/lib/urpmi/list.cdrom2 got the correct path so I only
> > changed
> 
> That's really funny. Should not actually if you used the above form.

I use a minimum of keystrokes (other than wearing out my arrow keys :) so all 3
mounts were done first, then the 3 urpmi.addmedia's changing only the [123]s... 
sounds like an obscure bug.

Thanks,
Pierre

Reply via email to