I installed the package via CPAN, and it got crooked, can I remove it, or reinstall it?

  • try just install it should replace the package. They also recommend that if the directory from which the module was installed was saved (it remains in /root/.cpan/ or somewhere in the current user), run make uninstall in it - Mike
  • Write an answer to your question. Stackoverflow.com/questions/511330/… - edem

1 answer 1

more or less universal way - with the help of the cpanm client:

 $ cpanm -U Foo # удалить пакет Foo $ cpanm -SU Foo # удалить пакет Foo, запуск из-под суперпользователя 

Attention, it is important that install_base coincides with what you used when installing the CPAN module, as a rule, this is so, but if that is to specify install_base, in which cpanm will look for the module, you can use the -l option:

 $ cpanm -l ~/ -U Foo # удалить пакет Foo, установленный в install_base = домашнему каталогу 

Read more about all this here - https://metacpan.org/pod/distribution/App-cpanminus/bin/cpanm#uninstall--U