+ -
当前位置:首页 → 问答吧 → 如何用shell判断 组件安装了没 ?

如何用shell判断 组件安装了没 ?

时间:2011-11-26

来源:互联网

rt,
检查系统里有没有安装 openssl组件,
如果安装了直接到下一步,
如果没安装,自动安装~

多谢~~~~~~~~~~~~

作者: leeyangcn   发布时间: 2011-11-26

可能大致是这样的,具体楼主自己填充吧
Perl code
#! /bin/sh

mystr=`rpm -qa openssl`
if [ -z $mystr ];then
    echo "install openssl"
else
    echo "continue..."
fi

作者: thefirstz   发布时间: 2011-11-27

热门下载

更多