tags:

views:

155

answers:

2

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?

+3  A: 

Doesn't filtering out the module initially work?

ysth
it probably would, but once I have the repository locally, adding a filter doesn't seem to remove it.I could delete the repository and start again with filtering, but that would take quite awhile.
Matthew Watson
+5  A: 

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.

brian d foy
thanks again brian, and sorry for the cross post without notice.
Matthew Watson