centos7 expect安装
时间: 2023-08-31 13:12:12 浏览: 190
在CentOS 7上安装expect,你可以使用yum源来自动解决依赖关系。你可以运行以下命令来安装expect:
```
yum -y install expect
```
如果你想手动安装expect和tcl的源码包,可以将下载的文件拷贝到Linux系统的文件目录下,并解压缩。然后执行安装脚本install_expect.sh。安装完成后,你可以验证安装是否成功,运行以下命令:
```
rpm -q expect
```
如果expect已经成功安装,你将会看到类似以下的输出:
```
expect-5.45-14.el7_1.x86_64
```
这表示expect已经成功安装在CentOS 7上了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [CentOS7.8安装expect及使用](https://blog.csdn.net/qq_41944882/article/details/105956317)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [expect_tcl.zip](https://download.csdn.net/download/Primeprime/13460098)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Centos7安装expect工具,实现shell脚本免交互](https://blog.csdn.net/Brave_heart4pzj/article/details/129650011)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文