您可以按以下三种格式之一获得 pkginfo 显示: 短格式、简明格式和长格式。
短格式是缺省格式。如缺省 pkginfo 显示所示,该格式仅显示类别、软件包缩写和软件包全名。
简明格式显示软件包缩写、软件包名称、软件包体系结构(如果有)和软件包版本(如果有)。使用 -x 选项可以请求简明格式,如下一个示例所示。
$ pkginfo -x
.
.
.
SUNWipc Interprocess Communications
(sparc) 11.8.0,REV=1999.08.20.12.37
SUNWisolc XSH4 conversion for ISO Latin character sets
(sparc) 1.0,REV=1999.07.10.10.10
SUNWkcspf KCMS Optional Profiles
(sparc) 1.1.2,REV=1.5
SUNWkcspg KCMS Programmers Environment
(sparc) 1.1.2,REV=1.5
.
.
.
$
|
使用 -l 选项可生成长格式显示,其中包括有关软件包的所有可用信息,如下面的示例所示。
$ pkginfo -l SUNWcadap
PKGINST: SUNWcadap
NAME: Chip designers need CAD application software to
design abc chips. Runs only on xyz hardware and is installed
in the usr partition.
CATEGORY: system
ARCH: SPARC
VERSION: release 1.0
BASEDIR: /opt
PSTAMP: system980706083849
INSTDATE: Jul 7 1999 09:58
STATUS: completely installed
FILES: 13 installed pathnames
6 directories
3 executables
3121 blocks used (approx)
$
|