|
Posted by Ted Zlatanov on September 3, 2004, 4:06 pm
Please log in for more thread options
On Sun, 29 Aug 2004, dominix@despamed.com wrote:
> ici même:4ny8k1alxd.fsf@lifelogs.com,
>
>> You can always run your own CPAN mirror... It doesn't have to be
>> public to be useful.
>
> WOW, too big, it take a few GIG.
There are several reasons why you should do it anyway:
1) downloading over rsync will save you bandwidth. It adds up if you
push a module update to N machines. Also you are saving the CPAN
server's bandwidth, which is nice to the owners.
2) a local CPAN mirror works even if your outside internet connection
is down (with some caveats).
3) hard drives are extremely cheap, a few GB is a really small amount
of data these days.
> I wrote this once a day a was in need of such a feature
> it mirror just active modules.
Cool, but mirroring everything is definitely easier to setup and
maintain, in addition to the above reasons. No custom software, just
an rsync in the crontab and that's it.
Hope that helps...
Ted
|
|
Posted by Sherm Pendley on August 26, 2004, 2:00 pm
Please log in for more thread options
Michael Meissner wrote:
> If you have high bandwidth at limited times (say at work), and very limited or
> no bandwidth at other times (say at home or in a laptop while traveling), it is
> much more convenient to download everything, rather than download a package you
> want, and then discover the 3 packages it depends on, and the 6 packages those
> other packages use.
Ah, but you asked about *installing* all of the modules - that's not the
best solution for the situation you're describing now.
All you need to do is download a local copy of your favorite CPAN
distribution site, and configure CPAN.pm to download from a file:// URL
that points to your local copy.
See <http://cpan.org/misc/cpan-faq.html#How_mirror_CPAN> for more on
creating a local CPAN mirror.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
|
|
Posted by Brian McCauley on August 26, 2004, 6:52 pm
Please log in for more thread options
Michael Meissner wrote:
>
>
>>rsdivekar@hotmail.com (ravi) wrote in news:aaa32b5e.0408252035.63630e97
>>@posting.google.com:
>>
>>
>>>Is there a way I can easily install ALL the modules on CPAN
>>>in one stroke ?
>>>Something like a tar or ZIP file ?
>>
>>Why? Some have similar functionality, some are probably outdated, and most
>>you will never (say never) use.
>
>
> If you have high bandwidth at limited times (say at work), and very limited or
> no bandwidth at other times (say at home or in a laptop while traveling), it is
> much more convenient to download everything, rather than download a package you
> want, and then discover the 3 packages it depends on, and the 6 packages those
> other packages use.
This would be an argument for having your own private CPAN mirror it
doesn't justify trying to install all modules.
|
|
Posted by odigity on August 26, 2004, 7:09 pm
Please log in for more thread options > rsdivekar@hotmail.com (ravi) wrote in news:aaa32b5e.0408252035.63630e97
> @posting.google.com:
>
> > Is there a way I can easily install ALL the modules on CPAN
> > in one stroke ?
> > Something like a tar or ZIP file ?
>
> Why? Some have similar functionality, some are probably outdated, and most
> you will never (say never) use.
Yes, but it doesn't *hurt* to have them around, and its nice to not
have to run to cpan to fetch and install another module every time you
need something new, which is fairly often when you're in a
learning/exploring binge, as I am right now!
To contrast CPAN with, say, a RedHat distribution - I always select
"custom" and then "all packages" because disk space is cheap (full
install of RH9 is 5GB) and time is expensive, so on the off chance
I'll need something obscure, why not have it ready for me to use?
To answer the original poster's question, there is a theoretical 'yes'
answer - install Bundle::Everything. However, this is completely
impractical, as half the modules on CPAN have some broken tests, and
even if you force installed Bundle::Everything, a great percentage of
modules have interactive installs, or will simply not work even when
forced.
What *would* be nice, besides auto-install everything, is something
like yum or red carpet, but for CPAN. A single command that will look
for, fetch, and install the newest versions of all modules you already
have installed.
|
|
Posted by Sherm Pendley on August 27, 2004, 1:15 am
Please log in for more thread options odigity wrote:
> What *would* be nice, besides auto-install everything, is something
> like yum or red carpet, but for CPAN. A single command that will look
> for, fetch, and install the newest versions of all modules you already
> have installed.
From "perldoc CPAN.pm":
Programming Examples
This enables the programmer to do operations that combine functional-
ities that are available in the shell.
# install everything that is outdated on my disk:
perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
|
| Similar Threads | Posted | | download Modules from CPAN and then load into Perl Question | October 15, 2004, 3:07 pm |
| lwp-download http://..--how do I use it to download pages? | June 8, 2008, 5:47 pm |
| To publish on CPAN or not? And architectural q. on modules. | November 29, 2007, 12:56 pm |
| How to find all modules, required by a given CPAN module | September 4, 2005, 2:25 am |
| querying modules dependency tree on CPAN | November 19, 2004, 1:54 am |
| General question on CPAN perl modules | March 13, 2005, 6:34 pm |
| Testing database code in CPAN modules | April 4, 2005, 12:33 pm |
| weirdness with CPAN modules that use Data::Dumper | June 30, 2007, 2:34 am |
| Issues Installing CPAN Modules on Win NT - Activestate Perl 5.61 | November 19, 2004, 6:52 am |
| [RFC] What's a good CPAN root name for mobile and wireless modules? | January 2, 2005, 4:49 pm |
|