1pkginfo(1) User Commands pkginfo(1)
2
3
4
6 pkginfo - display software package information
7
9 pkginfo [-q | -x | -l] [-p | -i] [-r] [-a arch]
10 [-v version] [-c category]... [pkginst]...
11
12
13 pkginfo [-d device] [-R root_path] [-q | -x | -l] [-a arch]
14 [-v version] [-c category]... [pkginst]...
15
16
18 pkginfo displays information about software packages that are installed
19 on the system (with the first synopsis) or that reside on a particular
20 device or directory (with the second synopsis).
21
22
23 Without options, pkginfo lists the primary category, package instance,
24 and the names of all completely installed and partially installed pack‐
25 ages. It displays one line for each package selected.
26
28 The -p and -i options are meaningless if used in conjunction with the
29 -d option.
30
31
32 The options -q, -x, and -l are mutually exclusive.
33
34 -a arch
35
36 Specify the architecture of the package as arch.
37
38
39 -c category
40
41 Display packages that match category. Categories are defined with
42 the CATEGORY parameter in the pkginfo(4) file. If more than one
43 category is supplied, the package needs to match only one category
44 in the list. The match is not case specific.
45
46
47 -d device
48
49 Defines a device, device, on which the software resides. device can
50 be an absolute directory pathname or the identifiers for tape,
51 floppy disk, removable disk, and so forth. The special token spool
52 may be used to indicate the default installation spool directory
53 (/var/spool/pkg).
54
55
56 -i
57
58 Display information for fully installed packages only.
59
60
61 -l
62
63 Specify long format, which includes all available information about
64 the designated package(s).
65
66
67 -p
68
69 Display information for partially installed packages only.
70
71
72 -q
73
74 Do not list any information. Used from a program to check whether
75 or not a package has been installed.
76
77
78 -r
79
80 List the installation base for relocatable packages.
81
82
83 -R root_path
84
85 Defines the full path name of a directory to use as the root_path.
86 All files, including package system information files, are relo‐
87 cated to a directory tree starting in the specified root_path.
88
89
90 -v version
91
92 Specify the version of the package as version. The version is
93 defined with the VERSION parameter in the pkginfo(4) file. All com‐
94 patible versions can be requested by preceding the version name
95 with a tilde (∼). Multiple white spaces are replaced with a single
96 white space during version comparison.
97
98
99 -x
100
101 Designate an extracted listing of package information. The listing
102 contains the package abbreviation, package name, package architec‐
103 ture (if available) and package version (if available).
104
105
107 pkginst
108
109 A package designation by its instance. An instance can be the pack‐
110 age abbreviation or a specific instance (for example, inst.1 or
111 inst.2). All instances of a package can be requested by inst.*. The
112 asterisk character (*) is a special character to some shells and
113 may need to be escaped. In the C-Shell, "*" must be surrounded by
114 single quotes (') or preceded by a backslash (\).
115
116
118 0
119
120 Successful completion.
121
122
123 >0
124
125 An error occurred.
126
127
129 /var/spool/pkg
130
131 default installation spool directory
132
133
135 See attributes(5) for descriptions of the following attributes:
136
137
138
139
140 ┌─────────────────────────────┬─────────────────────────────┐
141 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
142 ├─────────────────────────────┼─────────────────────────────┤
143 │Availability │SUNWcsu │
144 └─────────────────────────────┴─────────────────────────────┘
145
147 pkgtrans(1), pkgadd(1M), pkgask(1M), pkgchk(1M), pkgrm(1M), pkginfo(4),
148 attributes(5), largefile(5)
149
150
151 Application Packaging Developer's Guide
152
154 Package commands are largefile(5)-aware. They handle files larger than
155 2 GB in the same way they handle smaller files. In their current imple‐
156 mentations, pkgadd(1M), pkgtrans(1) and other package commands can
157 process a datastream of up to 4 GB.
158
159
160
161SunOS 5.11 30 Oct 2007 pkginfo(1)