Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall from `Carton`

Tags:

perl

cpanm

I have Carton environment and install modules into ./local/ from cpanfile. But now I do not require some modules and want to remove some.

I can remove ./local folder and install modules from scratch but this take a time. I have found this

carton uninstall Module

But it does not exists anymore.

Is there something like carton uninstall?

like image 457
Eugen Konkov Avatar asked Oct 30 '22 16:10

Eugen Konkov


1 Answers

I workaround I just delete local folder and install modules from scratch:

rm -r local
carton

UPD

Note: This can take a while to install from scratch.

Thus to save time you can pass --notest option to cpanm via PERL_CPANM_OPT:

PERL_CPANM_OPT=--notest carton

Or if you you want to prevent querying for new versions:

carton install --deployment

This will install modules without testing them. This is safe in compare to previous command because you know that module was installed before (tests were PASS)

like image 101
Eugen Konkov Avatar answered Nov 13 '22 15:11

Eugen Konkov