检查是否安装expect
[root@VM_32_11_centos ~]# rpm -qa|grep expect
[root@VM_32_11_centos ~]#
没有任何返回,就说明没有安装expect
安装expect
[root@VM_32_11_centos ~]# yum install expect
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
os | 3.6 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/7): epel/7/x86_64/group_gz | 95 kB 00:00:00
(2/7): epel/7/x86_64/updateinfo | 1.0 MB 00:00:00
(3/7): os/7/x86_64/group_gz | 153 kB 00:00:00
(4/7): updates/7/x86_64/primary_db | 176 kB 00:00:00
(5/7): extras/7/x86_64/primary_db | 190 kB 00:00:00
(6/7): os/7/x86_64/primary_db | 6.1 MB 00:00:01
(7/7): epel/7/x86_64/primary_db | 6.8 MB 00:00:01
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package expect.x86_64 0:5.45-14.el7_1 will be installed
--> Processing Dependency: libtcl8.5.so()(64bit) for package: expect-5.45-14.el7_1.x86_64
--> Running transaction check
---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================