phunni Posted December 21, 2002 Report Share Posted December 21, 2002 I have just completed a basic install of Mandrake on a mchaine that I wil be using as a server. For some reason, however, only CD1 has been added as a source for RPM. I seem to remember that there is a specific command for adding al lthe distribution sources to urpmi (I have 3 CDs) Can anyone remember what this command is? Quote Link to comment Share on other sites More sharing options...
bvc Posted December 21, 2002 Report Share Posted December 21, 2002 http://www.mandrakeusers.org/viewtopic.php?t=1845 Quote Link to comment Share on other sites More sharing options...
phunni Posted December 21, 2002 Author Report Share Posted December 21, 2002 OK, I can see that I could simply add the other CDs as a specific source. I was thinking of a particular command, related to urpmi.addmedia, that specifically added the sources for the current distribution. So I could do: urpmi.addmedia MyCD file:///mnt/cdrom/MyCD/RPMS and add a source that way called MyCD - or I could use the command I am thinking of (but can't remember) to add all three Mandrake CDs in a robust way using only one command Quote Link to comment Share on other sites More sharing options...
aru Posted December 21, 2002 Report Share Posted December 21, 2002 So I could do: urpmi.addmedia MyCD file:///mnt/cdrom/MyCD/RPMS and add a source that way called MyCD I don't think so (I'm not an expert as I install the rpms the macho way, you know, when men where men, and so) but reading man urpmi.addmedia you can see: Removable device: urpmi.addmedia removable_<device>://<path> with <relative path of hdlist> <device> is the name of your media as specified in the /dev/ directory (e.g. cdrom, floppy, zip, ...). <path> is the location of the rpm directory on your machine when media is mounted. Do that for each one of the cds Quote Link to comment Share on other sites More sharing options...
beesea Posted December 21, 2002 Report Share Posted December 21, 2002 urpmi.addmedia --distrib cdrom removable:///mnt/cdrom Quote Link to comment Share on other sites More sharing options...
phunni Posted December 21, 2002 Author Report Share Posted December 21, 2002 Thank you - that was exactly what I was looking for. I'm currently having a minor problem, however. Every time I try to run the command, I get "unable tot access the first installation medium" I have cd1 in the drive when I run this command - is this right? Quote Link to comment Share on other sites More sharing options...
beesea Posted December 21, 2002 Report Share Posted December 21, 2002 I have cd1 in the drive when I run this command - is this right? i don't remember. i had to this myself a few months, but don't recall having any problems with it. i guess you could try it initially without a cd in the drive or with disc 2 in the drive, etc. also, make sure /mnt/cdrom is the correct name for the device you're using Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.