Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Get List of installed CPAN modules with timestamp for CPAN modules dependency resolution

by Corion (Patriarch)
on Jul 05, 2021 at 07:30 UTC ( #11134657=note: print w/replies, xml ) Need Help??


in reply to Get List of installed CPAN modules with timestamp for CPAN modules dependency resolution

You can also create a "Bundle" file using the autobundle command of the cpan client to list all modules for later reinstallation:

cpan -a ... Package namespace installed latest in CPAN file + Algorithm::C3 0.10 0.11 HAARG/Algorithm-C3-0.11 +.tar.gz Algorithm::Diff 1.1903 1.201 RJBS/Algorithm-Diff-1.2 +01.tar.gz ... Wrote bundle file /home/corion/.local/share/.cpan/Bundle/Snapshot_2021_07_05_00.pm

The list of modules listed in this bundle can then be installed in another environment using:

perl -MCPAN -e 'install Bundle::Snapshot_2021_07_05_00'

(as the module itself says)

  • Comment on Re: Get List of installed CPAN modules with timestamp for CPAN modules dependency resolution
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11134657]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2022-10-06 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (27 votes). Check out past polls.

    Notices?