您可以尝试使用以下命令搜索包裹的每一部分:sudo yum search perl | grep IO | grep Pty
return: perl-IO-Pty-Easy.noarch : IO::Pty 的简单接口
但是,我使用了您的代码,在 CentOS 7 中减去-y
,发现以下内容:
$ sudo yum install "perl(IO::Pty)"
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package perl-IO-Tty.x86_64 0:1.10-11.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================
Installing:
perl-IO-Tty x86_64 1.10-11.el7 CentOS-Cache 42 k
Transaction Summary
==============================================================================================================================================================================================
Install 1 Package
Total download size: 42 k
Installed size: 76 k
Is this ok [y/d/N]:
确保您有权访问默认存储库并且它们已启用...
希望这会有所帮助,彼得