Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

List of Installed Perl Module in Unix Box

by shan_emails (Beadle)
on May 07, 2013 at 08:23 UTC ( #1032447=perlquestion: print w/ replies, xml ) Need Help??
shan_emails has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Is there any option to get the list of installed perl module in the HP-UX unix box.

I am in a position to get the list of installed perl module from HP-UX unix box and install those modules into linux "Red Hat Linux 5.x" box.

for that i tried the below command

ls -1 *.pm *pl | xargs -i egrep "^use *" {} | egrep -v "constant|vars +|fields" | sort | uniq -d


But, I don't know is this right way to get the installed perl module.

Thanks,
Shanmugam A.

Comment on List of Installed Perl Module in Unix Box
Download Code
Replies are listed 'Best First'.
Re: List of Installed Perl Module in Unix Box
by marto (Bishop) on May 07, 2013 at 08:27 UTC

    Use cpan, it provides autobundle to achieve this. You can then transfer the bundle file to your new host and install it, for example:

    cpan> install Bundle::Snapshot_YYYY_MM_DD_XX
Re: List of Installed Perl Module in Unix Box
by Corion (Pope) on May 07, 2013 at 08:28 UTC

    I would look at the autobundle functionality of CPAN:

    perl -MCPAN -eshell cpan> autobundle

    Before installing the created bundle on the other machine, I would carefully review the listed modules. Also consider what module policy you want - do you want to use the vendor-supplied modules? Then you need to investigate the OS package manager.

Re: List of Installed Perl Module in Unix Box
by petdance (Parson) on May 07, 2013 at 14:51 UTC
Re: List of Installed Perl Module in Unix Box (autobundle)
by Anonymous Monk on May 07, 2013 at 12:16 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1032447]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-30 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls