卸载perl的模块

本来考虑卸载perl模块可以用cpan工具的,但是经过网上找了半天,最后从一篇外国文章

http://stackoverflow.com/questions/7777252/uninstall-all-perl-modules-installed-by-cpan

看完以后得出来,其实cpan就是个管安装不管卸载的工具,所以要删除perl的模块,还需要别的方式,然后从上面的这篇帖子里面看到,其实可以通过一个工具


https://metacpan.org/module/App::pmuninstall


这个工具的安装方式可以参考下面的

This is Perl module App::pmuninstall.

INSTALLATION

App::pmuninstall installation is straightforward. If your CPAN shell is set up,
you should just be able to do

    % cpan App::pmuninstall

Download it, unpack it, then build it as per the usual:

    % perl Makefile.PL
    % make && make test

Then install it:

    % make install

DOCUMENTATION

App::pmuninstall documentation is available as in POD. So you can do:

    % perldoc App::pmuninstall

to read the documentation online with your favorite pager

其实说白了最简单的就是直接通过cpan

cpan App::pmuninstall


然后就是装完以后利用

pm-uninstall    模块

不过有些模块通过这种方式还删除不了,对这种模块可以通过下面的方式,也是从网上找到的


perl -e 'print join "\n",@INC'
会print出所有模块和库的安装目录,到这些目录下找到对应的pm删除掉就可以了。



女装欧美风夏装字母宽松打底小衫潮


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值