in reply to Installing modules from a local machine

Here's how you get all of CPAN to carry around with you.

Check out merlyn's minicpan script. In that script, set the $LOCAL variable to a directory of your choice, and the $REMOTE to a CPAN server near you. Run that script on a machine with internet access. Burn the directory to a CD (or copy it to a USB stick).

On the target machine, mount the medium. Run cpan and set the first item in urllist to the directory containing the CPAN archive (e.g. /mnt/cdrom/MINICPAN):

$ cpan cpan shell -- CPAN exploration and modules installation (v1.xxxx) cpan> o conf urllist unshift file:///mnt/cdrom/MINICPAN cpan> o conf commit commit: wrote /home/user/.cpan/CPAN/MyConfig.pm cpan>

Voilà. You are ready to install any CPAN Module from your removable device.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Installing modules from a local machine
by jimman666 (Initiate) on Dec 20, 2006 at 07:17 UTC
    Thanks a lot for your replies....i'm trying to make a cd with all the necessary packages for installing koha....since i have to take them to villages in kerala with no internet access. Here is the perl part of the job koha:~# perl -MCPAN -e shell cpan> install Event MARC::Charset MARC::Lint Digest::MD5 MARC::File::XML \ > LWP::Simple ZOOM PDF::API2 GD::Barcode Data::Random PDF::Reuse::Barcode cpan> get Net::Z3950 cpan> exit