blackadder has asked for the wisdom of the Perl Monks concerning the following question:

Hi there,
What is the best way to create a library repository on a CD please? We do not have unrestricted FTP access, therefore I have to install the libraries manually, and sometimes mistakes can occur and the library doesn’t install properly (disasters and high levels of stress begins to occur). I would like to use PPM, and be able to point it the local CD_ROM drive to pick up the required libraries. Can someone please help us out with this?
Many Thanks.

Replies are listed 'Best First'.
Re: Local Library Repository
by vek (Prior) on Jul 04, 2002 at 23:30 UTC
    Hello blackadder, I might be missing your point here but couldn't you just do (assuming h: is your cd-rom drive):
    PPM>install h:\somelibdir\foo
    -- vek --
      To set up a local repository

      1. D/L all the PPD files for the modules concerned to a directory (perlmodules)
      2. Follow the links in the PPD to D/L the module tar.gz files.
      3. Create subdirectories for each relevant architecture and move archives to appropriate directory.
      4. Edit The location in each PPD to reflect a file://protocol and appropriate relative path (use '/') form for each architecture.
      5. start PPM
      6. set repository LOCAL d:\perlmodules
      7. search (best done on a box w/o inet access)
      8. If the modules show perform a test install. If it works you are ready to transfer to CDROM if not locate the mispelling or bad link and try again.
      9. reset your PPM LOCAL repository to the CDROM drive
      10. Issue a set save command to save configuration.
      11. Other stations only require the repository setting to access the CDROM. You may want to remove any other default repositories by issuing set repository --remove repositoryname.

      Talwyn

        Many Thanks for the help, I'll have ago and see, although I am struggling with point number 4, because I cannot find a PPD file for Lanman library (for example), and when tried the same thing with AdminMisc (In the PPD file, I edit the line
        <CODEBASE HREF>="file://c:/perlmodules/adminmisc/adminmisc_5006.tar")
        PPM came back with error "installing package and error reading the above file"?
        uhmmmmm?!