Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I regenerate a .minicpanrc?

7 views
Skip to first unread message

James E Keenan

unread,
Mar 16, 2017, 5:30:03 PM3/16/17
to cpan-w...@perl.org
Last month I was testing the latest version of CPAN module B::C. The
testing process caused major damage to my machine. One of my FreeBSD
VMs was rendered inaccessible. All of the .xxx configuration files in
my home directory disappeared. I spent most of the next several days
reinstalling the VM, restoring my .xxx files and backing them up in an
off-site repository.

I thought I was completely recovered until today. For the first time in
about 6 weeks, I decide to run 'minicpan'. I typed the command by
itself, as I have always done -- and only got the usage statement. I
attribute this to the disappearance of .minicpanrc config file.

I am now running 'minicpan -l </path/to/minicpan>. AFAICT, the minicpan
tree is itself undamaged. Is there any way to simply regenerate
.minicpanrc without triggering another minicpan update process?

Thank you very much.
Jim Keenan

Olaf Alders

unread,
Mar 16, 2017, 6:00:01 PM3/16/17
to James E Keenan, cpan-w...@perl.org
Hi Jim,

Could you just copy/paste it? For example, mine is currently:

local: ~/minicpan
remote: http://cpan.metacpan.org/
exact_mirror: 1



Best,

Olaf

James E Keenan

unread,
Mar 16, 2017, 7:15:02 PM3/16/17
to cpan-w...@perl.org
Thanks, Olaf. I guess that's the "default" .minicpanrc. But ISTR that
at one point, on xdg's suggestion, I had something that pointed to a
file whose name started with '06'.

jimk

Olaf Alders

unread,
Mar 16, 2017, 7:15:02 PM3/16/17
to James E Keenan, cpan-w...@perl.org

> On Mar 16, 2017, at 6:58 PM, James E Keenan <jk...@verizon.net> wrote:
>
>> Hi Jim,
>>
>> Could you just copy/paste it? For example, mine is currently:
>>
>> local: ~/minicpan
>> remote: http://cpan.metacpan.org/
>> exact_mirror: 1
>>
>
> Thanks, Olaf. I guess that's the "default" .minicpanrc. But ISTR that at one point, on xdg's suggestion, I had something that pointed to a file whose name started with '06'.
>
> jimk

Hi Jim,

06perms? You'd find that in the modules directory of a CPAN mirror. For example http://cpan.metacpan.org/modules/06perms.txt Not sure how that plays into your config file, though.

Best,

Olaf

James E Keenan

unread,
Mar 16, 2017, 7:30:02 PM3/16/17
to cpan-w...@perl.org
Yes, I can't recall why I had it there. Probably something having to do
with CPAN::Mini::Visit::Simple.

As my memory of this improves, I also recall that I had something in the
.minicpanrc to use this module from CPAN:

CPAN::Mini::LatestDistVersion - Create a CPAN mirror with only the
latest version of each distribution

Would this do the trick?

class: CPAN::Mini::LatestDistVersion

Olaf Alders

unread,
Mar 16, 2017, 7:30:02 PM3/16/17
to James E Keenan, cpan-w...@perl.org

> On Mar 16, 2017, at 7:20 PM, James E Keenan <jk...@verizon.net> wrote:

> Yes, I can't recall why I had it there. Probably something having to do with CPAN::Mini::Visit::Simple.
>
> As my memory of this improves, I also recall that I had something in the .minicpanrc to use this module from CPAN:
>
> CPAN::Mini::LatestDistVersion - Create a CPAN mirror with only the latest version of each distribution
>
> Would this do the trick?
>
> class: CPAN::Mini::LatestDistVersion

I'm not sure, but your CPANRatings review of that module seems to suggest that's the solution. :) http://cpanratings.perl.org/dist/CPAN-Mini-LatestDistVersion

Olaf

James E Keenan

unread,
Mar 16, 2017, 8:00:01 PM3/16/17
to cpan-w...@perl.org
Aha! You caught me with another memory failure! One of the rare times
that I've used cpanratings -- and already it's disappeared from my brain.

In any case, I have opened https://github.com/rjbs/CPAN-Mini/issues/13
in the hope of getting some improved documentation from rjbs.
0 new messages