1depend(4)                        File Formats                        depend(4)
2
3
4

NAME

6       depend - software dependencies file
7

DESCRIPTION

9       depend is an ASCII file used to specify information concerning software
10       dependencies for a particular package. The file is created by  a  soft‐
11       ware developer.
12
13
14       Each  entry in the depend file describes a single software package. The
15       instance of the package is described after the entry line by giving the
16       package  architecture and/or version. The format of each entry and sub‐
17       sequent instance definition is:
18
19         type pkg name
20              (arch)version
21              (arch)version
22                 ...
23
24
25
26
27       The fields are:
28
29       type             Defines the dependency type. Must be one of  the  fol‐
30                        lowing characters:
31
32                        P    Indicates  a  prerequisite  for installation; for
33                             example, the referenced package or versions  must
34                             be installed.
35
36
37                        I    Implies that the existence of the indicated pack‐
38                             age or version is incompatible.
39
40
41                        R    Indicates a reverse dependency. Instead of defin‐
42                             ing  the  package's own dependencies, this desig‐
43                             nates that another package depends on  this  one.
44                             This type should be used only when an old package
45                             does not have a depend file, but  relies  on  the
46                             newer package nonetheless. Therefore, the present
47                             package should not be removed if  the  designated
48                             old  package  is still on the system since, if it
49                             is removed, the old package will no longer work.
50
51
52
53       pkg              Indicates the package abbreviation.
54
55
56       name             Specifies the full package name.
57
58
59       (arch)version    Specifies a particular instance  of  the  software.  A
60                        version name cannot begin with a left parenthesis. The
61                        instance specifications, both (arch) and version,  are
62                        completely  optional, but each (arch)version pair must
63                        begin on a new line that begins with  white  space.  A
64                        null  version  set equates to any version of the indi‐
65                        cated package.
66
67

EXAMPLES

69       Example 1 Sample of depend file
70
71
72       Here are the contents of a sample depend file, for  the  SUNWftpr  (FTP
73       Server) package, stored in /var/sadm/pkg/SUNWftpr/install:
74
75
76         P SUNWcar       Core Architecture, (Root)
77         P SUNWkvm       Core Architecture, (Kvm)
78         P SUNWcsr       Core Solaris, (Root)
79         P SUNWcsu       Core Solaris, (Usr)
80         P SUNWcsd       Core Solaris Devices
81         P SUNWcsl       Core Solaris Libraries
82         R SUNWftpu      FTP Server, (Usr)
83
84

SEE ALSO

86       pkginfo(4)
87
88
89       Application Packaging Developer's Guide
90
91
92
93SunOS 5.11                        4 Oct 1996                         depend(4)
Impressum