删除使用cpanm安装的perl模块

前端之家收集整理的这篇文章主要介绍了删除使用cpanm安装的perl模块前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我是Perl的初学者.我想使用Log :: Log4perl模块,因为我熟悉它在 Java中是如何工作的.我使用cpanm脚本下载模块,但我没有“sudo”运行它.然后它将此模块安装到我的dir / home / amer / perl5.之后,我把它作为sudoer安装,但我想删除我家里的安装,以避免将来发生任何冲突.我怎样才能做到这一点?
Here is my cmdline execution stack.

感谢致敬!

解决方法

目前这是非常实验性的,但现在cpanm支持卸载选项.
MetaCpan开始:

-U,–uninstall

EXPERIMENTAL: Uninstalls the modules. Will remove the distribution files from your library path using the .packlist file. When used with -l or -L,only the files under the local::lib directory will be removed. NOTE: If you have the “dual-life” module in multiple locations (i.e. site_perl and perl library path,with perl 5.12 or later),only the files in site_perl will be deleted. If the distribution has bin scripts and man,they will be kept in case the core installation still references that,although there’s no guarantee that the script will continue working as expected with the older version of .pm files.

原文链接:https://www.f2er.com/Perl/172421.html

猜你在找的Perl相关文章