卸载Perl错误:由于以下依赖于它的软件包而无法删除

use*_*853 2 perl

我正在尝试将我的Perl版本从5.14升级到5.20.

当我运行perl 5.20升级sudo pkg更新时出现system/runtime/perl@5.20此错误:

pkg update: No matching version of system/runtime/perl can be installed:
  Reject:  pkg://ms.system.com/system/runtime/perl@5.20.0,5.11-0.151006:20140604T182727Z
  Reason:  This version is excluded by installed incorporation pkg://perl.system.com/omniti/incorporation/perl-514-incorporation@5.14,5.11-0.151002:20120725T211507Z
Run Code Online (Sandbox Code Playgroud)

因此我首先尝试卸载当前的5.14版本sudo pkg uninstall system/incorporation/perl-514-incorporation并获得:

Creating Planpkg uninstall: Cannot remove 'pkg://perl.omniti.com/omniti/incorporation/perl-514-incorporation@5.14,5.11-0.151002:20120725T211507Z' due to the following packages that depend on it:
// A list of dependent packages 
Run Code Online (Sandbox Code Playgroud)

关于如何通过这个问题的任何问题?

fri*_*edo 6

强烈建议您不要尝试升级系统perl.您的操作系统中的许多杂项都依赖于它,将其升级到新的主要版本将需要打破很多东西.还要考虑此升级还需要重建具有XS依赖性的每个CPAN模块.

更好的解决方案是使用perlbrew在您的主目录中本地安装perl-5.20.0.然后,您可以使用它来处理更新的perls,而无需触及您的操作系统perl.