我需要安装perl-Expect,所以,我执行了:
# yum install -y perl-Expect
Error: Package: perl-Expect-1.21-14.el7.noarch (epel)
Requires: perl(IO::Pty) >= 1.03
Error: Package: perl-Expect-1.21-14.el7.noarch (epel)
Requires: perl(IO::Tty)
好的,我需要安装perl(IO :: Pty)
我发起了
# yum install -y "perl(IO::Pty)"
No package perl(IO::Pty) available.
Error: Nothing to do
那么,如何将所有必需的perl模块安装到RHEL?
答案 0 :(得分:0)
您可以尝试使用sudo yum search perl | grep IO | grep Pty
返回: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]:
确保您有权访问默认存储库并已启用它们...
希望这会有所帮助, 彼得