如何卸载通过`cpan`安装的Perl模块? [英] How can I de-install a Perl module installed via `cpan`?

查看:142
本文介绍了如何卸载通过`cpan`安装的Perl模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用在用户空间(不是通过root用户安装)中运行的Perl,并通过命令行cpan安装模块.我想知道是否有一种简单的方法可以删除模块,而无需进行大量的删除单个文件的工作.

I am using Perl running in user space (not installed via root) and installing modules via the command-line cpan. I would like to know if there is a simple way to remove a module without having to do a lot of work deleting individual files.

我在Internet上搜索了此问题并找到了一些答案,但是我发现的答案似乎要么是在使用Perl软件包管理器(特定于Microsoft Windows)讨论,要么是特定于操作系统(BSDpan),建议使用cpanplus(我曾有过几次糟糕的经历),或者以指向无效链接的方式结束,如下所示:http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules.

I searched for this question on the internet and found some answers, but the answers I've found seem to either discuss using the Perl package manager (specific for Microsoft Windows), otherwise operating-system specific (BSDpan), suggesting using cpanplus (which I've had several bad experiences with), or ended by pointing to a dead link as follows: http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules.

我的问题特别是是否存在一种干净的方法来删除通过cpan安装的模块.

My question is specifically whether there is a clean way to remove a module installed via cpan.

推荐答案

您不能.我的CPAN客户端中没有任何功能可以执行此操作.在本周末的Perl QA研讨会上,我们正在讨论如何做类似的事情,但是由于以太提到的所有原因,通常很难.

You can't. There isn't a feature in my CPAN client to do such a thing. We were talking about how we might do something like that at this weekend's Perl QA Workshop, but it's generally hard for all the reasons that Ether mentioned.

这篇关于如何卸载通过`cpan`安装的Perl模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆