liquidzoo Posted May 26, 2003 Report Share Posted May 26, 2003 I'm getting a new hard drive for my laptop soon (at least 60 gig, maybe 80 if I can afford it) and I have a question. I will install Mandrake from the cd's, but for the updates that require the cd's, I would like to create a new partition that's like 2.5 Gigs and copy the RPM folders from each cd onto that partition, just so I don't have to carry the cd's with me in case I need something. Here's my question How do I update my sources to look on this new partition for the RPM's instead of looking for the cd's? I know I have to go to the software sources manager (to do it graphically) but I'm not sure what path I should put in instead of the default one. By the way, has anyone tried this before? How well does it work? Thanks again for everyone's help. Quote Link to comment Share on other sites More sharing options...
tyme Posted May 26, 2003 Report Share Posted May 26, 2003 you would put the path to the RPM files and you would also need to copy over the hdlist. If i had mandrake installed I could be more specific for you, but by looking at the directory setup of the CD-ROM and how the CD sources are setup (the directory it points to, etc.) you should be able to figure out exactly what path you should put as the replacement. i.e.: replace /mnt/cdrom with /whateverdiryoucopytheminto Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted May 26, 2003 Author Report Share Posted May 26, 2003 Sweet, thanks. I will give it a try and see how it goes. Quote Link to comment Share on other sites More sharing options...
aRTee Posted May 27, 2003 Report Share Posted May 27, 2003 I just mount the iso's that I have on my harddrive, this way I can burn the discs on request and install from them whenever I need. mount -t iso9660 /path/to/iso /path/to/make/content/available -o loop for that second path I use whatever is requested by urpmi, when it says: "please enter Mandrake International CD (disc 3) in /mnt/cdrom", I use /mnt/cdrom More than 1 road leads to Rome... ;) Quote Link to comment Share on other sites More sharing options...
Gowator Posted May 27, 2003 Report Share Posted May 27, 2003 On this point however it would by less work to use the DVD edition. :-) Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted May 27, 2003 Author Report Share Posted May 27, 2003 Ok, one more question. The full url for, say, cd 1 in the software sources manager is removable://mnt/cdrom/Mandrake/RPMS/ Do I keep the removable:// part? Quote Link to comment Share on other sites More sharing options...
tyme Posted May 27, 2003 Report Share Posted May 27, 2003 I don't think so...I'd you'd just need /pathtodir/Mandrake/RPMS but I can't check, as I don't use an RPM-based system....no harm in trying, tho, right? :D Quote Link to comment Share on other sites More sharing options...
Guest KShots Posted May 31, 2003 Report Share Posted May 31, 2003 From the manpage for urpmi.addmedia: urpmi.addmedia tells urpmi that he can find new rpms at the specified location. Currently supported medias are: local drives, removable drives (such as cd's), networked like http, ftp, ssh and rsync. One of the following modes must be choosen: http: urpmi.addmedia [options] <name> http://<login>:<pass>@<host>/<path> [with <relative path of synthesis|hdlist>] Where <name> is your reference for the media (e.g. MandrakeUp- date). <name> is optional if --distrib is given in options. <host>/<path> is the location of the rpm directory on the net. <relative path of hdlist> is the pathname where to find the hdlist of the rpms. The location is given relative to <path>. curl is used by default to download files, wget may be used if curl is not installed or --curl is given in options. eg: urpmi.addmedia http http://jpackage.sf.net/rpm/free with hdlist.cz ftp: urpmi.addmedia [options] <name> ftp://<login>:<pass>@<host>/<path> [with <relative path of synthesis|hdlist>] The same as for http, just add your login and user if required (Note that you needn't to specify anonymous as login for anony- mous access ftp servers). Note that if wget is used to download files with a firewall you may have to add passive_ftp=on option to /etc/wgetrc. eg: urpmi.addmedia ftp ftp://a:a@leia//export/Mandrake/RPMS with ../base/hdlist.cz ssh: urpmi.addmedia [options] <name> ssh://<login>@<host>/<path> [with <relative path of synthesis|hdlist>] The same as for http, just add your login and password if required. It is strongly recommended to export root key in order not to have to type password all the time. scp and rsync will be used to get files. eg: urpmi.addmedia -h ssh ssh://fpons@bi/c/i586/Mandrake/RPMS rsync: urpmi.addmedia [options] <name> rsync://<login>@<host>:<port>/<path> [with <relative path of synthesis|hdlist>] The same as for http, you can use <host>::<path> too. eg: urpmi.addmedia rsync rsync://ftp.orst.edu::mandrake- devel/contrib/ppc with ../../cooker/ppc/Mandrake/base/hdlist2.cz eg: urpmi.addmedia -h ssh ssh://fpons@bi/c/i586/Mandrake/RPMS rsync: urpmi.addmedia [options] <name> rsync://<login>@<host>:<port>/<path> [with <relative path of synthesis|hdlist>] The same as for http, you can use <host>::<path> too. eg: urpmi.addmedia rsync rsync://ftp.orst.edu::mandrake- devel/contrib/ppc with ../../cooker/ppc/Mandrake/base/hdlist2.cz Local drive or NFS: urpmi.addmedia [options] <name> file://<path> [with <relative path of synthesis|hdlist>] Where <name> is your reference for the media (e.g. Myrpms). <path> is the location of the rpm directory on your machine. Removable device: urpmi.addmedia [options] <name> removable://<path> [with <relative path of synthesis|hdlist>] <path> is the location of the rpm directory on your machine when the removable device is mounted. I think I'd use the "local drive or NFS" method urpmi.addmedia [options] <name> file://<path> [with <relative path of synthesis|hdlist>] Quote Link to comment Share on other sites More sharing options...
paleo Posted May 31, 2003 Report Share Posted May 31, 2003 you can copy all the rpms from the cds into one folder, say /RPM. Then do $genhdlist /RPM this will create hdlist.cz and synthesis.hdlist.cz in /RPM. After this, become root and #urpmi.addmedia name-of-the-media file://RPM with hdlist.cz After this, the rpms in /RPM are available through urpmi and rpmdrake. You can use this method for other rpms (from contrib, texstar, etc.) Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted May 31, 2003 Author Report Share Posted May 31, 2003 Thank you paleo. That is exactly what I needed to get it to work. 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.