[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CPAN.pm in offline mode?



On Fri, Jan 29, 1999 at 01:42:58PM +0000, Bart Lateur wrote:
} On Fri, 29 Jan 1999, Chris Nandor wrote:
} 
} >> * It gives you a list of what modules it wants, and then quits;
} >
} >Gives you a list of modules _what_ wants?
} 
} Of whatever you want to install. It analyses (does it?) a source file,
} and tells you what modules you don't have. But instead of downloading
} them itself, it tells you what to download.

CPAN.pm can also do that.  I'd hate to have to rip that out of the
code and make it standalone, but you should be able to get it to do it
offline with the current code with a little futzing around.  You will
need to download the files it uses for this purpose by hand, but I
think it will use previous versions if it can't get the current
ones. So you just have to install the versions you download by hand
and let the ftp fail.  Then type 'r' (this is under Linux, which I'm running
this morning):

[bin@schinder ~]$ perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.47)
ReadLine support enabled

cpan> r
CPAN: LWP loaded ok
Fetching with LWP:
  ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/01mailrc.txt.gz
Going to read /usr/local/src/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Going to read /usr/local/src/.cpan/sources/modules/02packages.details.txt.gz
Scanning cache /usr/local/src/.cpan/build for sizes
Fetching with LWP:
  ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/03modlist.data.gz
Going to read /usr/local/src/.cpan/sources/modules/03modlist.data.gz

Package namespace         installed    latest  in CPAN file
Tk::WinPhoto                  3.002     3.008  NI-S/Tk800.011.tar.gz
WWW::Search::Excite            1.08       1.4  JOHNH/WWW-Search-1.022.tar.gz
260 installed modules have no parseable version number

It compares what's available at CPAN with the version numbers of
what's installed.  This isn't perfect, as is evident here; I have
Tk800.012 and WWW-Search-1.023 installed.  It does not tell you about
modules you don't have installed.  It does, however, have some pattern
matching capabilities to help in searches:

cpan> i /XML/ 
Distribution    B/BH/BHOLZMAN/XML-Generator-0.1.tar.gz
Distribution    C/CO/COOPERCL/XML-Encoding-1.01.tar.gz
Distribution    C/CO/COOPERCL/XML-Parser-2.19.tar.gz
Distribution    E/EI/EISEN/XML-CGI-0.02.tar.gz
Distribution    E/EI/EISEN/XML-Dumper-0.02.tar.gz
Distribution    E/EI/EISEN/XML-Registry-0.02.tar.gz
Distribution    E/EN/ENNO/XML-DOM-1.14.tar.gz
Distribution    E/EN/ENNO/XML-XQL-0.58.tar.gz
Distribution    K/KR/KRAEHE/XML-Edifact-0.2.tgz
Distribution    KMACLEOD/XML-Grove-0.05.tar.gz
Distribution    M/MS/MSERGEANT/CGI-XMLForm-0.07.tar.gz
Distribution    M/MS/MSERGEANT/DBIx-XML_RDB-0.03.tar.gz

(and a bunch more).


} 
} Great! Now, I "only" have 40Mb on my Mac, so I  hope it'll work...
} ;-)

While you're at it, grab cpan-mac-0.22.sit.bin from CPAN.

} 	Bart.
} 
} 

-- 
Paul Schinder
schinder@pobox.com

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch