例子 :

$pm-uninstall Acme::Time::Baby
Acme::Time::Baby is included in the distribution Acme-Time-Baby and contains:
  /home/directory/perl5/lib/perl5/Acme/Time/Baby.pm
  /home/directory/perl5/man/man3/Acme::Time::Baby.3pm
Are you sure to uninstall Acme-Time-Baby? [y] y
Acme::Time::Baby is successfully uninstalled.
You may want to rebuild man(1) entires. Try `mandb -c` if needed

这将卸载名称 Acme::Time::Baby的模块 。

安装pmuninstall :

$cpanm App::pmuninstall
--> Working on App::pmuninstall
Fetching http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/App
pmuninstall-0.16.tar.gz ... OK
Configuring App-pmuninstall-0.16 ... OK
Building and testing App-pmuninstall-0.16 ... OK
Successfully installed App-pmuninstall-0.16

pmuninstall用法 :

pm-uninstall --help
Usage:
      pm-uninstall [options] Module ...
      options:
          -v,--verbose                  Turns on chatty output
          -f,--force                    Uninstalls without prompts
          -c,--checkdeps                Check dependencies ( default on )
          -n,--no-checkdeps             Not check dependencies
          -h,--help                     This help message
          -V,--version                  Show version
          -l,--local-lib                Additional module path
          -L,--local-lib-contained      Additional module path (don't include non-core modules)
Perl - 如何卸载/删除 Perl 模块

安装 Perl 模块可以使用 cpanm 实用程序,但是如何删除 Perl 模块呢?
答案是 App::pmuninstall 模块

日期:2020-06-02 22:16:02 来源:oir作者:oir