xref: /titanic_50/usr/src/tools/depcheck/get_depend_info.1onbld (revision 2a52a1627973d84afe3af6de87c1fe00ac3d087e)
t

CDDL HEADER START

The contents of this file are subject to the terms of the
Common Development and Distribution License, Version 1.0 only
(the "License"). You may not use this file except in compliance
with the License.

You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.

When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]

CDDL HEADER END


Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

GET_DEPEND_INFO 1ONBLD "Nov 2, 2000"
"NAME"
get_depend_info - get dependency information about a package or a file
"SYNOPSIS"

get_depend_info [-cons] -dbdir dbm_database_pathname
 [-f | -p] [-h] [-root root_pathname]
 [-s] [-pkg SUN_package | filename ...]
"DESCRIPTION"

The get_depend_info command prints dependency information about a package, a file, or a set of files on the standard output.

"OPTIONS"

The following options are supported: -cons Turns on conservative mode, that is, refrains from using /usr/bin/strings. -dbdir Specifies the directory in which the Perl DBM databases generated by make_pkg_db(1ONBLD) are located. -f Outputs file dependencies only. -h Displays help. -p Outputs package dependencies only. -pkg Specifies a particular package on which you want to run the dependency analysis. You must specify this option if you specify either a Sun software package or a third-party software package that conforms with the Sun package format (SUN_package). -root Specifies an alternate root. You must also use the -pkg option if you use this option. -s Outputs symbolic links for files or packages only.

"OPERANDS"

The following operands are supported: dbm_database_pathname Specifies the path name of the directory in which the Perl DBM databases generated by make_pkg_db are located. filename Specifies the name of a file or files on which you want to run the dependency analysis. root_pathname Specifies the path name of an alternate root you want to use. SUN_package Specifies the name of a particular Sun software package (or any third-party software package that conforms with the Sun package format) on which you want to run the dependency analysis. You must use the -pkg option if you specify this operand.

You can specify either a Sun software package or a file name, but not both.

"EXAMPLES"

Example 1: To Get a Dependency Analysis of Two Particular Files

% get_depend_info -dbdir MyDir /usr/bin/ls /usr/bin/man

Example 2: To Get a Dependency Analysis of Files Using a Wild Card

% get_depend_info -dbdir MyDir /usr/sbin/*

Example 3: To Get a Dependency Analysis of a Package in Sun Format

% get_depend_info -dbdir MyDir -pkg NSCPcom
% get_depend_info -dbdir MyDir -pkg SUNWnisu

Example 4: To Display Help

% get_depend_info -h
"ATTRIBUTES"

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Availability SUNWonbld
CSI Enabled
Interface Stability Evolving
MT-Level Unsafe
"SEE ALSO"

make_pkg_db(1ONBLD), attributes(5)