Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I exclude a module from a minicpan repository?

Tags:

perl

minicpan

I have a local MINICPAN repository, but I want to remove a specific version of a module, and inject an older version.

This is the steps I've taken.

- create the MINICPAN, not filtering any modules
- use mcpani --add for the module in question
- use mcpani --inject

At this point, I can see in the MINICPAN that it has both the version I want, and the newer version, if I issue install in cpan, then the newer version of the module is install. How can I get rid of the newer version from my minicpan?

like image 763
Matthew Watson Avatar asked Mar 01 '23 05:03

Matthew Watson


1 Answers

Filter the modules that you are going to inject. The CPAN::Mini has the documentation for filtering, and I think I had some examples in the resources I pointed you toward earlier. :)

If you already have the minicpan, as you said in the comment to ysth, you can create another minicpan from that one. The "remote" CPAN in that case is the one that you have. I do that all the time: I have a canonical minicpan, but then for testing things, I filter from that to create new repositories just so I don't have to deal with the network.

like image 147
brian d foy Avatar answered Mar 05 '23 19:03

brian d foy