5 .\" The contents of this file are subject to the terms of the
6 .\" Common Development and Distribution License, Version 1.0 only
7 .\" (the "License"). You may not use this file except in compliance
10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 .\" or http://www.opensolaris.org/os/licensing.
12 .\" See the License for the specific language governing permissions
13 .\" and limitations under the License.
15 .\" When distributing Covered Code, include this CDDL HEADER in each
16 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 .\" If applicable, add the following below this CDDL HEADER, with the
18 .\" fields enclosed by brackets "[]" replaced with your own identifying
19 .\" information: Portions Copyright [yyyy] [name of copyright owner]
24 .\" Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
25 .\" Use is subject to license terms.
27 .TH GET_DEPEND_INFO 1ONBLD "Nov 2, 2000"
29 get_depend_info \- get dependency information about a package or a file
33 \fBget_depend_info\fR [-\fBcons\fR] \-\fBdbdir\fR \fIdbm_database_pathname\fR
34 [-\fBf\fR | -\fBp\fR] [-\fBh\fR] [-\fBroot\fR \fIroot_pathname\fR]
35 [-\fBs\fR] [-\fBpkg\fR \fISUN_package\fR | \fIfilename\fR \&...]
39 The \fBget_depend_info\fR command prints dependency information about a package,
40 a file, or a set of files on the standard output\&.
43 The following options are supported:
48 Turns on conservative mode, that is, refrains from using
49 \fB/usr/bin/strings\fR\&.
57 Specifies the directory in which the Perl DBM databases generated by
58 \fBmake_pkg_db\fR(1ONBLD) are located\&.
66 Outputs file dependencies only\&.
82 Outputs package dependencies only\&.
90 Specifies a particular package on which you want to run the dependency
91 analysis\&. You must specify this option if you specify either a Sun software
92 package or a third-party software package that conforms with the Sun package
93 format (\fISUN_package\fR)\&.
101 Specifies an alternate root\&. You must also use the -\fBpkg\fR option if you
110 Outputs symbolic links for files or packages only\&.
116 The following operands are supported:
119 \fB\fIdbm_database_pathname\fR\fR
121 Specifies the path name of the directory in which the Perl DBM databases
122 generated by \fBmake_pkg_db\fR are located\&.
130 Specifies the name of a file or files on which you want to run the dependency
137 \fB\fIroot_pathname\fR\fR
139 Specifies the path name of an alternate root you want to use\&.
145 \fB\fISUN_package\fR\fR
147 Specifies the name of a particular Sun software package (or any third-party
148 software package that conforms with the Sun package format) on which you want
149 to run the dependency analysis\&. You must use the -\fBpkg\fR option if you
150 specify this operand\&.
155 You can specify either a Sun software package or a file name, but not both\&.
158 \fBExample 1:\fR To Get a Dependency Analysis of Two Particular Files
161 % get_depend_info -dbdir MyDir /usr/bin/ls /usr/bin/man
164 \fBExample 2:\fR To Get a Dependency Analysis of Files Using a Wild Card
167 % get_depend_info -dbdir MyDir /usr/sbin/*
170 \fBExample 3:\fR To Get a Dependency Analysis of a Package in Sun Format
173 % get_depend_info -dbdir MyDir -pkg NSCPcom
174 % get_depend_info -dbdir MyDir -pkg SUNWnisu
177 \fBExample 4:\fR To Display Help
184 See \fBattributes\fR(5) for descriptions of the following attributes:
190 ATTRIBUTE TYPE ATTRIBUTE VALUE
192 Availability SUNWonbld
194 Interface Stability Evolving
200 \fBmake_pkg_db\fR(1ONBLD), \fBattributes\fR(5)