Subject: | Understand absolute URIs for installation |
On PDX.pm we got this question:
---------------------
Slightly off-topic, but maybe worth asking: the only way I've been
able to make autobundle snapshots work is by saving the bundle file
(say it's called "Snapshot_2008_01_30_00.pm") in ~/.cpan/Bundle/ ,
firing up CPAN, then running "install Bundle::Snapshot_2008_01_30_00"
at the CPAN prompt.
If I were to, say, just save it on my desktop and then run "install
~/Desktop/Snapshot_2008_01_30_00", then CPAN just goes looking out in
the world for things called that. Schwern, is there a magic trick I
don't know?
---------------------
Which is to say, if you have a bundle file and it's not in the CPAN
bundle directory how do you install it? None of the following worked:
install ~/Desktop/Snapshot_2008_01_30_00.pm
install /home/foo/Desktop/Snapshot_2008_01_30_00.pm
install file:///home/foo/Desktop/Snapshot_2008_01_30_00.pm
CPAN thinks they're all to be looked for on a mirror.
On a related note, it would be nice if I could install, via CPAN, a
specific tarball not on a CPAN mirror.
It would be nice if the CPAN shell understood an absolute path or URI to
a tarball or bundle and DWIM with it.