App-lcpan-Manual

 view release on metacpan or  search on metacpan

lib/App/lcpan/Manual/Cookbook.pod  view on Meta::CPAN


=head2 Finding out if there is any broken prerequisites specified by one of your distributions [author]

To find out which prerequisites that your distributions specify but are
currently not indexed (i.e. probably cannot be installed by users):

 % lcpan author-deps YOUR-CPAN-ID --broken --dont-uniquify

=head2 Listing distributions of other CPAN authors that depend on one of your modules [author]

    % lcpan author-rdeps YOUR-CPAN-ID --user-author-isnt YOUR-CPAN-ID

=head2 Listing distributions of other CPAN authors that recently depend on one of your modules [author]

    # Show dependencies that were added in the last 2 weeks
    % lcpan author-rdeps YOUR-CPAN-ID --user-author-isnt YOUR-CPAN-ID --added-since '2 weeks ago'

    # Show dependencies that were updated in the last 2 weeks
    % lcpan author-rdeps YOUR-CPAN-ID --user-author-isnt YOUR-CPAN-ID --updated-since '2 weeks ago'

    # Show dependencies that were not present before your last 'lcpan update'
    % lcpan author-rdeps YOUR-CPAN-ID --user-author-isnt YOUR-CPAN-ID --added-in-last-update

=head2 Showing what other distributions you will have to download and install when you install a module

TODO.

=head1 QUERYING DISTRIBUTIONS

=head2 Listing recent distributions

TODO

=head2 Sampling some random distributions (1.063+)

 % lcpan dists    --random --result-limit 100
 % lcpan dists -l --random --result-limit 100

=head1 QUERYING MENTIONS

=head2 Finding out who (which script's or module's POD) mentions your module [author]

 % lcpan mentions-for-mod YOUR-MODULE

=head2 Finding out who (which script's or module's POD) mentions your script [author]

 % lcpan mentions-for-script YOUR-SCRIPT

=head1 QUERYING MODULES

=head2 Comparing version of installed modules vs local CPAN versions

 % lcpan ver-cmp-installed
 % lcpan ver-cmp-installed --older-than-db                ;# outdated modules (modules that need to be updated)
 % lcpan ver-cmp-installed --older-than-db --exclude-core ;# noncore outdated modules (noncore modules that need to be updated)

The C<ver-cmp-installed> subcommand is distributed in
L<App::lcpan::CmdBundle::ver>.

This can also be done using tools like L<cpan-outdated> (from
L<App::cpanoutdated>) or L<cpan-outdated-coro> (from
L<App::cpanoutdated::coro>).

To update outdated modules:

 % lcpan-ver-cmp-installed --older-than-db | td select module | lcpanm -n

L<td> is provided by L<App::td>.

=head2 Listing recent modules

    # Show modules that were added in the last 2 weeks
    % lcpan mods -l --added-since '2 weeks ago'

    # Show modules that were updated in the last 2 weeks
    % lcpan mods -l --updated-since '2 weeks ago'

    # Show modules that were not present before the last 'lcpan update'
    % lcpan mods -l --added-in-last-index-update

There's also C<lcpan whatsnew>.

=head2 Sampling some random modules (1.063+)

 % lcpan mods    --random --result-limit 100
 % lcpan mods -l --random --result-limit 100

=head2 Showing related modules

You like L<Sub::Exporter> and wonder what other modules might be similar or
related to it:

    % lcpan related-mods Sub::Exporter

The C<related-mods> subcommand uses the degree of being mentioned together as a
proxy for relatedness. If you want to see in which POD documents the module and
related module are being mentioned together, you can add `--with-content-paths`
option.

=head1 QUERYING RELEASES

=head2 Listing recent releases

TODO.

=head2 Sampling some random releases (1.063+)

 % lcpan rels    --random --result-limit 100
 % lcpan rels -l --random --result-limit 100

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2021, 2020 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut



( run in 0.726 second using v1.01-cache-2.11-cpan-524268b4103 )