Jump to content

Mandrake Update, URPMI w/o CD's


liquidzoo
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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... ;)

Link to comment
Share on other sites

Guest KShots

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>]

Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...