I've seen autobundle, I've seen other "find installed modules" scripts. Also various "modules used by this script", App::FatPacker, and Module::CoreList. But why don't things like cpan and cpanm have a $HOME/.cpan/installed.log? A log of successfully installed modules/distributions (maybe with a timestamp)? I made a quick hack to App::cpanminus and got something like this:

Successfully installed IO-String-1.08 Successfully installed IO-All-0.43 Successfully installed CPAN-Meta-2.112150 (upgraded from 2.110440) Successfully installed Perl-Tidy-20101217 Successfully installed Data-Dump-1.19
Am I missing some tool or configuration option that makes cpan/cpanplus/cpanminus leave a log of successful installs? Hopefully in a format that would be easy to 'replay' when upgrading to the next version of Perl.

Update:

cpanm's build.log file is overwritten with each run so it only contains the last set of modules installed. (this is why I hacked it up to log success messages to a separate log file.)

cpanp's install-logs logs are also done on a per-run basis. (a virgin install of say IO::All just leaves a IO-All log, not both IO::String and IO::All. It also doesn't have a simply greppable line that can be matched to provide a useful list. (its "success" messages are "[MSG] [Tue Aug  9 23:05:37 2011] Installing /home/lando/perl5/lib/perl5/IO/String.pm", which would vary with install location an require munging to get back to just IO::String or IO-String.

I'm looking for a simple persistent log of successful installs, so if on a freshly brewed Perl I were to install IO::All, the log would have: IO::String, IO::All. And then months later when a new Perl arrives I have a list of modules installed in the order they happened (including dependencies).


In reply to Is there a cpan/cpanm install.log? by zengargoyle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.