CPANPLUS and installing lotsa modules at once

silent11 on 2005-07-01T14:20:33

I'm still getting my Linux box ready for development, and I've been installing a hella lota modules. I know CPANPLUS is already the easy way, but comon! There are like 40+ Net::Amazon modules and a ton for Template::* etc...

I tried CPAN Terminal> install Net::Amazon::* but that didn't work. After looking in the docs I noticed that CPANPLUS accepts install MODULE | NUMBER .... Which installs modules by name or by search number.

Still, knowing the search number wouldn't save me time. Then I thought , wouldn't it be cool if I could do something like install Net::Amazon 1..LAST_IN_SEARCH

Well I searched on Net::Amazon, found that 41 modules existed, and issued a i Net::Amazon 1..41 and do you know it WORKED!

This will save me soo much time, especially with the Template::* modules.

The only problem is that it wouldn't follow dependencies, which I do have CPANPLUS set up to do.


41? Surely...

bart on 2005-07-01T23:42:14

A search for Net::Amazon distributions showed me only 5 distributions in total. In short: if you install Net::Amazon, you install a bunch of others in the same distribution at the same time.

5 distributions. That doesn't seem so unfeasable to me.

Well, that doesn't mean you didn't discover a neat trick. You did.

Re:41? Surely...

silent11 on 2005-07-08T12:44:06

Ah-ha! I never really made the distinction between modules and distros. This will indeed save me time =)

Thanks.