Click here to get back home

List of all modules installed on a system

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
List of all modules installed on a system Ignoramus8011 08-08-2007
Posted by Ignoramus8011 on August 8, 2007, 1:41 pm
Please log in for more thread options


Is there some clever, canonical way to find out out all modules that
were installed on the system via CPAN? I have a server with a lot of
modules installed, that I want to replicate, hence the question.

thanks

i

Posted by A. Sinan Unur on August 8, 2007, 1:53 pm
Please log in for more thread options



> Is there some clever, canonical way to find out out all modules that
> were installed on the system via CPAN? I have a server with a lot of
> modules installed, that I want to replicate, hence the question.

When it comes to anything other than changing your posting id,
you are indeed a lazy ignoramus.

Read the FFAQ:

C:\Home> perldoc -q "How do I find which modules are installed on my system?"

Sinan

--
(remove .invalid and reverse each component for email address)
clpmisc guidelines: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>


Posted by Ignoramus8011 on August 8, 2007, 2:03 pm
Please log in for more thread options


>
>> Is there some clever, canonical way to find out out all modules that
>> were installed on the system via CPAN? I have a server with a lot of
>> modules installed, that I want to replicate, hence the question.
>
> When it comes to anything other than changing your posting id,
> you are indeed a lazy ignoramus.
>
> Read the FFAQ:
>
> C:\Home> perldoc -q "How do I find which modules are installed on my system?"
>
> Sinan
>

You have such a pleasant personality, you must be very good at getting
along with people!

Your answer was right on, thank you.

Here's my function from my bashrc that prints this list, based on your
suggestion:

list-all-installed-modules() {
perl -MExtUtils::Installed -e 'print join( " ",
ExtUtils::Installed->new()->modules() ) . "\n"'
}

i

Posted by Tad McClellan on August 8, 2007, 8:51 pm
Please log in for more thread options


["Followup-To:" header set to comp.lang.perl.misc.]
wrote:
>>
>>> Is there some clever, canonical way to find out out all modules that
>>> were installed on the system


>> Read the FFAQ:


> You have such a pleasant personality,


Expecting pleasantness while asking a Frequently Asked Question
is an unrealistic expectation.


> you must be very good at getting
> along with people!


And you, obviously, are not.


--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher0cmdat/"

Posted by Sherm Pendley on August 8, 2007, 1:54 pm
Please log in for more thread options



> Is there some clever, canonical way to find out out all modules that
> were installed on the system via CPAN? I have a server with a lot of
> modules installed, that I want to replicate, hence the question.

Will this help? From "perldoc CPAN":

autobundle

"autobundle" writes a bundle file into the "$CPAN::Con-
fig->/Bundle" directory. The file contains a list of all
modules that are both available from CPAN and currently installed
within @INC. The name of the bundle file is based on the current date
and a counter.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Similar ThreadsPosted
building GD using a locally-installed libgd (old libgd also present on system) November 10, 2006, 11:54 am
how do I list modules November 23, 2006, 5:09 pm
Stopping the cpan shell from fetching the modules list August 10, 2006, 3:45 am
Updating installed modules? June 23, 2006, 3:36 am
Finding installed modules January 8, 2008, 4:52 pm
Modules installed with PPM -- how to install on air-gapped machines December 30, 2004, 7:16 pm
ANNOUNCE: List-Compare-0.31 August 15, 2004, 10:26 am
ANNOUNCE: List::Compare v0.31 August 22, 2004, 2:06 pm
Help with script to list non-html files in folder October 27, 2005, 2:00 pm
system return value? January 26, 2007, 5:52 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap