各操作系统查软件信息(openssl)

redhat/centos/suse

    rpm -qa --qf %{N}\\t%{E}:%{V}-%{R}:%{installtime:day}:%{summary}\\n

    rpm -qa --qf %{N}\\t%{E}:%{V}-%{R}:%{installtime:day}:%{description}\\n

# rpm -qa | grep openssl
openssl-0.9.8e-26.el5_9.1

debian/ubuntu

    dpkg-query -W -f='${Status}\t${Package}\t${Architecture}\t${Version}\t${Description}\n'

$ dpkg-query -W | grep openssl
openssl 1.0.1e-2+deb7u13

Aix

# lslpp -l | grep openssl
  openssl.base             0.9.8.410  COMMITTED  Open Secure Socket Layer
  openssl.license          0.9.8.410  COMMITTED  Open Secure Socket License
  openssl.man.en_US        0.9.8.410  COMMITTED  Open Secure Socket Layer
  openssl.base             0.9.8.410  COMMITTED  Open Secure Socket Layer

Solaris

# pkginfo -l | grep openssl
   PKGINST:  SUNWopenssl-commands
   PKGINST:  SUNWopenssl-include
   PKGINST:  SUNWopenssl-libraries
   PKGINST:  SUNWopenssl-man
   PKGINST:  SUNWopensslr

Hp-ux

#swlist -l fileset | grep openssl
# openssl                               A.00.09.08l.003 Secure Network Communications Protocol 
  openssl.OPENSSL-CER                   A.00.09.08l.003 OpenSSL Certs Files 
  openssl.OPENSSL-CONF                  A.00.09.08l.003 OpenSSL Configure File 
  openssl.OPENSSL-DOC                   A.00.09.08l.003 OpenSSL Document Files


你可能感兴趣的:(rpm,pkginfo,swlist,dpkg-query,lslpp)