in reply to Re^4: CPAN::Mini on a diet
in thread CPAN::Mini on a diet

All right, did the test finally. Here is the short sequence:

  1. Update mirror with "standard" CPAN::Mini
  2. Clean up with my script
  3. Repeat, to be sure the count is zero.
  4. Install CPAN::Mini::LatestDistVersion.
  5. Sync with CPAN::Mini::LatestDistVersion.
  6. Run the cleanup script again.
  7. Sync again with CPAN::Mini::LatestDistVersion.

Result: the cleanup script removed some files, but not as much as using minicpan only.

And follows the long output of executing those steps:

-bash-4.3$ mirror_cleanup CPAN: CPAN::SQLite loaded ok (v0.211) CPAN: LWP::UserAgent loaded ok (v6.24) CPAN: Time::HiRes loaded ok (v1.9741) CPAN: URI::URL loaded ok (v5.04) CPAN: YAML::XS loaded ok (v0.63) Database was generated on Fri, 24 Mar 2017 00:50:05 GMT Updating database file ... Done! Starting cleanup... /minicpan/authors/id/A/AU/AUBERTG/Audit-DBI-TT2-v2.2.5.tar.gz can be r +emoved /minicpan/authors/id/A/AU/AUBERTG/Audit-DBI-v1.8.2.tar.gz can be remov +ed /minicpan/authors/id/B/BI/BINARY/Protocol-FIX-0.02.tar.gz can be remov +ed /minicpan/authors/id/D/DA/DAEMON/POE-Component-Client-WebSocket-0.23.t +ar.gz can be removed /minicpan/authors/id/D/DA/DAGOLDEN/Metabase-Backend-SQL-1.000.tar.gz c +an be removed ... /minicpan/authors/id/Z/ZD/ZDM/Pcore-API-Namecheap-v0.5.1.tar.gz can be + removed Total removed: 35 -bash-4.3$ mirror_cleanup Readloading CPAN client indexes... CPAN: CPAN::SQLite loaded ok (v0.211) CPAN: LWP::UserAgent loaded ok (v6.24) CPAN: Time::HiRes loaded ok (v1.9741) CPAN: URI::URL loaded ok (v5.04) CPAN: YAML::XS loaded ok (v0.63) Database was generated on Fri, 24 Mar 2017 00:52:22 GMT Updating database file ... Done! Starting cleanup... Total removed: 0 -bash-4.3$ cpan CPAN::Mini::LatestDistVersion CPAN: CPAN::SQLite loaded ok (v0.211) CPAN: LWP::UserAgent loaded ok (v6.24) CPAN: URI::URL loaded ok (v5.04) CPAN: YAML::XS loaded ok (v0.63) Database was generated on Fri, 24 Mar 2017 00:53:38 GMT Running install for module 'CPAN::Mini::LatestDistVersion' ... Result: PASS BRICAS/CPAN-Mini-LatestDistVersion-0.01.tar.gz /usr/bin/make test -- OK Running make install Installing /home/vagrant/perl5/perlbrew/perls/perl-5.24.1/lib/site_per +l/5.24.1/CPAN/Mini/LatestDistVersion.pm Appending installation info to /home/vagrant/perl5/perlbrew/perls/perl +-5.24.1/lib/5.24.1/OpenBSD.amd64-openbsd/perllocal.pod BRICAS/CPAN-Mini-LatestDistVersion-0.01.tar.gz /usr/bin/make install -- OK -bash-4.3$ minicpan -c CPAN::Mini::LatestDistVersion Updating /minicpan Mirroring from http://mirror.nbtelecom.com.br/CPAN/ =============================================================== authors/01mailrc.txt.gz ... up to date modules/02packages.details.txt.gz ... updated modules/03modlist.data.gz ... up to date indices/find-ls.gz ... updated authors/id/A/AC/ACANFORA/JSONP-1.60.tar.gz ... updated authors/id/A/AC/ACANFORA/CHECKSUMS ... updated authors/id/A/AF/AFRYER/TUXEDO_1_00.zip ... updated authors/id/A/AF/AFRYER/CHECKSUMS ... up to date authors/id/A/AL/ALAMBIKE/Eixo-Queue-0.5.5.tar.gz ... updated authors/id/A/AL/ALAMBIKE/CHECKSUMS ... updated authors/id/A/AN/ANTONC/Async-Simple-Pool-0.04.tar.gz ... updated ... authors/id/Z/ZD/ZDM/Pcore-ExtJS-v0.6.1.tar.gz ... updated authors/id/Z/ZD/ZDM/Pcore-Nginx-v1.2.2.tar.gz ... updated -bash-4.3$ mirror_cleanup Readloading CPAN client indexes... CPAN: CPAN::SQLite loaded ok (v0.211) CPAN: LWP::UserAgent loaded ok (v6.24) CPAN: Time::HiRes loaded ok (v1.9741) CPAN: URI::URL loaded ok (v5.04) CPAN: YAML::XS loaded ok (v0.63) Database was generated on Fri, 24 Mar 2017 00:53:38 GMT Updating database file ... Done! Starting cleanup... /minicpan/authors/id/A/AC/ACANFORA/JSONP-1.55.tar.gz can be removed /minicpan/authors/id/A/AF/AFRYER/TUXEDO_1_00.zip can be removed /minicpan/authors/id/A/AL/ALAMBIKE/Eixo-Queue-0.5.3.tar.gz can be remo +ved /minicpan/authors/id/A/AO/AOSSAMA/YARN.tar.gz can be removed /minicpan/authors/id/A/AR/ARFREITAS/CPAN-Reporter-Smoker-OpenBSD-0.001 +.tar.gz can be removed /minicpan/authors/id/A/AU/AUBERTG/DBIx-ScopedTransaction-v1.1.5.tar.gz + can be removed /minicpan/authors/id/A/AU/AUBERTG/DBIx-NinjaORM-v3.0.2.tar.gz can be r +emoved /minicpan/authors/id/A/AU/AUBERTG/Business-CyberSource-Report-v1.1.8.t +ar.gz can be removed /minicpan/authors/id/A/AU/AUBERTG/Data-Validate-Type-v1.5.1.tar.gz can + be removed /minicpan/authors/id/A/AU/AUBERTG/String-InterpolatedVariables-v1.0.4. +tar.gz can be removed /minicpan/authors/id/A/AU/AUBERTG/IPC-Concurrency-DBI-v1.1.3.tar.gz ca +n be removed ... /minicpan/authors/id/Z/ZD/ZDM/Pcore-Nginx-v1.2.1.tar.gz can be removed Total removed: 145 -bash-4.3$ minicpan -c CPAN::Mini::LatestDistVersion Updating /minicpan Mirroring from http://mirror.nbtelecom.com.br/CPAN/ =============================================================== authors/01mailrc.txt.gz ... up to date modules/02packages.details.txt.gz ... up to date modules/03modlist.data.gz ... up to date -bash-4.3$
Alceu Rodrigues de Freitas Junior
---------------------------------
"You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill