|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
3. Enhancing the Functionality of a Package (Tasks) 4. Verifying and Transferring a Package Verifying and Transferring a Package (Task Map) Verifying the Integrity of a Package Transferring a Package to a Distribution Medium 5. Case Studies of Package Creation |
Displaying Additional Information About Installed PackagesYou can use two other commands to display information about installed packages:
The pkgparam CommandThe pkgparam command enables you to display the values associated with the parameters you specified on the command line. The values are retrieved from either the pkginfo file for a specific package, or from the file you name. One parameter value is shown per line. You can display the values only or the parameters and their values. How to Obtain Information With the pkgparam Command
Example 4-3 Obtaining Information With the pkgparam CommandFor example, to display values only, use this command. $ pkgparam SUNWcadap none /opt US/Mountain /sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin /usr/sadm/sysadm SUNWcadap Chip designers need CAD application software to design abc chips. Runs only on xyz hardware and is installed in the usr partition. system release 1.0 SPARC venus990706083849 SUNWcadap /var/sadm/pkg/SUNWcadap/save Jul 7 1999 09:58 $ To display parameters and their values, use the following command. $ pkgparam -v SUNWcadap pkgparam -v SUNWcadap CLASSES='none' BASEDIR='/opt' TZ='US/Mountain' PATH='/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin' OAMBASE='/usr/sadm/sysadm' PKG='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' VERSION='release 1.0' ARCH='SPARC' PSTAMP='venus990706083849' PKGINST='SUNWcadap' PKGSAV='/var/sadm/pkg/SUNWcadap/save' INSTDATE='Jul 7 1999 09:58' $ Or, if you want to display the value of a specific parameter, use this format: $ pkgparam SUNWcadap BASEDIR /opt $ For more information, refer to pkgparam(1). See AlsoIf you are ready to go to the next task, see How to Remove a Package. The pkginfo CommandYou can display information about installed packages with the pkginfo command. This command has several options that enable you to customize both the format and the contents of the display. You can request information about any number of package instances. The Default pkginfo DisplayWhen the pkginfo command is executed without options, it displays the category, package instance, and package name of all packages that have been completely installed on your system. The display is organized by categories as shown in the following example. $ pkginfo . . . system SUNWinst Install Software system SUNWipc Interprocess Communications system SUNWisolc XSH4 conversion for ISO Latin character sets application SUNWkcspf KCMS Optional Profiles application SUNWkcspg KCMS Programmers Environment application SUNWkcsrt KCMS Runtime Environment . . . $ Customizing the Format of the pkginfo DisplayYou can get a pkginfo display in any of three formats: short, extracted, and long. The short format is the default. It shows only the category, package abbreviation, and full package name, as shown in The Default pkginfo Display. The extracted format shows the package abbreviation, package name, package architecture (if available), and package version (if available). Use the -x option to request the extracted format as shown in the next example. $ 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 . . . $ Using the -l option produces a display in the long format showing all of the available information about a package, as in the following example. $ 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) $ Parameter Descriptions for the pkginfo Long FormatThe table below describes the package parameters that can be displayed for each package. A parameter and its value are displayed only when the parameter has a value assigned to it. Table 4-2 Package Parameters
For detailed information about the pkginfo command, refer to the pkginfo(1) man page. How to Obtain Information With the pkginfo Command
More Information |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|