shell脚本怎么实现检测软件包安装

时间:2024-10-11 19:38:41

1、第一步,首先打开centos系统,切换到shell目录。

shell脚本怎么实现检测软件包安装

3、第三步,再使用rpm命令,if语句判断命令结果。

shell脚本怎么实现检测软件包安装

5、第五步,然后使用fi命令,结束循环。

shell脚本怎么实现检测软件包安装
© 长短途