-
-
10 Oct 2013 03:28:41 UTC
- Distribution: CPAN-Mini-LatestDistVersion
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (432 / 0 / 4)
- Kwalitee
Bus factor: 0- 28.57% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (20.31KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- CPAN::DistnameInfo
- CPAN::Mini
- Parse::CPAN::Packages::Fast
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
CPAN::Mini::LatestDistVersion - Create a CPAN mirror with only the latest version of each distribution
SYNOPSIS
use CPAN::Mini::LatestDistVersion; CPAN::Mini::LatestDistVersion->update_mirror( remote => "http://cpan.metacpan.org/", local => "/usr/share/mirrors/cpan", ); # or via minicpan minicpan -c CPAN::Mini::LatestDistVersion
DESCRIPTION
CPAN::Mini uses the package index file (
02packages.details.txt.gz
) to grab the distribution tarballs that map to a module in the index. Sometimes a newer version of a distribution is released which removes a module. Until it is deleted via PAUSE, that old distribution will remain in the index. This module attemps to filter those old distributions from the local mirror.METHODS
new( %options )
Overridden method which adds a sub to
path_filters
which will reject any dists which do not match the latest version from the02packages.details.txt.gz
index.mirror_indices( )
Overridden method which parses
02packages.details.txt.gz
and constructs the list of the latest version of each distribution.SEE ALSO
AUTHOR
Brian Cassidy <bricas@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2013 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install CPAN::Mini::LatestDistVersion, copy and paste the appropriate command in to your terminal.
cpanm CPAN::Mini::LatestDistVersion
perl -MCPAN -e shell install CPAN::Mini::LatestDistVersion
For more information on module installation, please visit the detailed CPAN module installation guide.