摘要:
1 temp=`dpkg -l | grep "openssl"2 if [ -n "$temp" ];then3 echo "openssl已经安装"4 elif [ -z "$temp" ];then5 echo "openssl未安装"6 fi1. rpm包安装的 rpm -qa | grep "软件包名称“2.deb包安装的 dpkg -l | grep "软件包名称"3.yum安装的 yum list installed | grep "软件包名 阅读全文