For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > August 2007 > List of all modules installed on a system









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author List of all modules installed on a system
Ignoramus8011

2007-08-08, 6:59 pm

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
A. Sinan Unur

2007-08-08, 6:59 pm

Ignoramus8011 <ignoramus8011@NOSPAM.8011.invalid> wrote in news:6_qdnV58mNmwnSfbnZ2dnUVZ_rTinZ2d@gi
ganews.com:

> 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

--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)
clpmisc guidelines: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>

Sherm Pendley

2007-08-08, 6:59 pm

Ignoramus8011 <ignoramus8011@NOSPAM.8011.invalid> writes:

> 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->{cpan_home}/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
Ignoramus8011

2007-08-08, 6:59 pm

On Wed, 08 Aug 2007 17:53:44 GMT, A. Sinan Unur <1usa@llenroc.ude.invalid> wrote:
> Ignoramus8011 <ignoramus8011@NOSPAM.8011.invalid> wrote in news:6_qdnV58mNmwnSfbnZ2dnUVZ_rTinZ2d@gi
ganews.com:
>
>
> 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
Ignoramus8011

2007-08-08, 6:59 pm

On Wed, 08 Aug 2007 13:54:39 -0400, Sherm Pendley <spamtrap@dot-app.org> wrote:
> Ignoramus8011 <ignoramus8011@NOSPAM.8011.invalid> writes:
>
>
> Will this help? From "perldoc CPAN":
>
> autobundle
>
> "autobundle" writes a bundle file into the "$CPAN::Con-
> fig->{cpan_home}/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--
>


Thanks, I think that ExtUtils::Installed is just perfect for my needs.

i
Tad McClellan

2007-08-08, 10:00 pm

["Followup-To:" header set to comp.lang.perl.misc.]
Ignoramus8011 <ignoramus8011@NOSPAM.8011.invalid> wrote:
> On Wed, 08 Aug 2007 17:53:44 GMT, A. Sinan Unur <1usa@llenroc.ude.invalid> wrote:

[color=darkred]

[color=darkred]
> 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.noitatibaher\100cmdat/"
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com