GET_DEPEND_INFO(1ONBLD) illumos Build Tools GET_DEPEND_INFO(1ONBLD)

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)
November 2, 2000