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

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

问题描述

我使用在用户空间运行的 Perl(不是通过 root 安装)并通过命令行 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.

我在互联网上搜索了这个问题并找到了一些答案,但我找到的答案似乎要么讨论使用 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 Workshop 上讨论​​了我们如何做这样的事情,但由于 Ether 提到的所有原因,这通常很难.

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天全站免登陆