Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

CPAN::Mini accumulating no-longer-indexed files?

by perlancar (Hermit)
on Oct 23, 2018 at 13:15 UTC ( [id://1224551]=perlquestion: print w/replies, xml ) Need Help??

perlancar has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

Glancing the source code, CPAN::Mini does not seem to clean downloaded release files that are no longer indexed in 02packages.details.txt.gz, and thus slowly "becoming less mini", am I right?

Usually what I do regularly is the following: list all the files in my mirror, then compare it to the files listed in 02packages.details.txt.gz, and then remove the files in my mirror not listed in 02packages. Or, using my tool: lcpan files-unindexed | xargs rm.

(Yes, there's CPAN::Mini::LatestDistVer but this is not exactly what I want. I want a CPAN mirror that only contains indexed files.)

  • Comment on CPAN::Mini accumulating no-longer-indexed files?

Replies are listed 'Best First'.
Re: CPAN::Mini accumulating no-longer-indexed files?
by cavac (Parson) on Oct 23, 2018 at 13:25 UTC

    CPAN::Mini has a couple of problems like this. If it gets killed (for some reason or another) during download, it sometimes(?) doesn't re-download the file when restarted.

    What i usually do is to clean my local copy once or twice a year (if i notice problems or bloat) and re-download everything.

    perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1224551]
Approved by hippo
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-25 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found