The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

mirror_cleanup

mirror_cleanup - cleanups a CPAN::Mini mirror

SYNOPSIS

    mirror_cleanup

OPTIONS

--help

This help message.

--version

Prints the version number and exits.

DESCRIPTION

The main objective of this program is to reduce the size of storage required to have a CPAN local repository.

This program assumes that the same user that has a mirror setup with CPAN::Mini is running it.

Also, it expects that the user has the CPAN client configured to use a SQLite backend.

It will run over all the distributions available on the database, and check the corresponding directories on the mirror (right now hardcoded to /minicpan/authors/id/ but may change in the future): if there is any tarball that is not listed as the most current distribution for an author, it will be removed.

At this moment, it is unclear why those older distribution are still available, but when it does it is not for any particular distribution. It might be a problem with the mirror itself.

Nevertheless, since the mirror is intended to be used for CPAN::Reporter::Smoker and that only the most recent distribution matters, it will release some storage space.

CAVEATS

This program should be considered experimental, may be there unknown side effects.

AUTHOR

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 of Alceu Rodrigues de Freitas Junior, arfreitas@cpan.org

This file is part of CPAN OpenBSD Smoker.

CPAN OpenBSD Smoker is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

CPAN OpenBSD Smoker is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with CPAN OpenBSD Smoker. If not, see <http://www.gnu.org/licenses/>.