我是Perl的初学者.我想使用Log :: Log4perl模块,因为我熟悉它在
Java中是如何工作的.我使用cpanm脚本下载模块,但我没有“sudo”运行它.然后它将此模块安装到我的dir / home / amer / perl5.之后,我把它作为sudoer安装,但我想删除我家里的安装,以避免将来发生任何冲突.我怎样才能做到这一点?
Here is my cmdline execution stack.
Here is my cmdline execution stack.
感谢致敬!
解决方法
目前这是非常实验性的,但现在cpanm支持卸载选项.
从 MetaCpan开始:
从 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.