in reply to Re^2: Offline cpan used by strawberry perl
in thread Offline cpan used by strawberry perl

Trim your urllist ?

And/or

Tickle this value

index_expire [1] index_expire refetch index files after this many days

CPANPLUS doesn't have a days, only a yes/no no_update

Replies are listed 'Best First'.
Re^4: Offline cpan used by strawberry perl
by Dirk80 (Pilgrim) on Feb 01, 2020 at 07:36 UTC

    Without being able to test it until monday. I'm very sure that setting the index_expire option to a high value is the solution. Because my problem were the index files. And it worked on the same day, but not afterwards. My setting was one day. This explains the complete behaviour although I have to say that the error message given by cpan was a bit misleading. Instead of saying that the index file expired, it tells me that it is not available.

    Here a summary, because at the end it does not seem to be much to do. First get a cpan via minicpan. Then add your local path to the urllist and set index_expire to a high value. That should be everything.

    cpan> o conf urllist unshift file://D:/Perl/strawberry/cpan/sources/ cpan> o conf index_expire 1000 cpan> o conf commit
    Update

    It was that easy. Setting the index_expire to a high value solved the problem. Thank you!!!