]> pd.if.org Git - zpackage/blob - doc/zpm-pkgdeps.8
cdda3765b2226c9ead5d031263cb7db5f2faeb58
[zpackage] / doc / zpm-pkgdeps.8
1 .TH zpm-pkgdeps 8 2019-02-22 "ZPM 0.3"
2 .SH NAME
3 zpm-pkgdeps \- run pkgdeps
4 .SH SYNOPSIS
5                 f) pkgfile="$OPTARG" ;;
6                 s) setlist="$setlist $OPTARG"; clearlist=1 ;;
7                 a) add="$add $OPTARG"; ;;
8                 r) remove="$remove $OPTARG" ;;
9                 q) quiet=1 ;;
10                 c) clearlist=1 ;;
11 .B zpm pkgdeps
12 [
13 .BI \-f " pkgfile"
14 ]
15 [
16 .B \-qc
17 ]
18 [
19 .BI \-s " dep"
20 ]
21 [
22 .BI \-a " dep"
23 ]
24 [
25 .BI \-r " dep"
26 ]
27 .RI [ package ...]
28 .SH DESCRIPTION
29 \fBzpm-pkgdeps\fR
30 manipulates and prints the set of package dependencies of a package.
31 The non-argument \fIpackage\fR is a full or partial package id,
32 and will be looked as if by zpm-findpkg.  A package dependency
33 is a full or partial package id, which is taken as a minimum package
34 version.  After any updates are made, the (new) set of dependencies
35 is printed to stdout on one line.
36 .PP
37 Actions to set, add, or remove dependencies are done in the order
38 of clearing the set, adding dependencies, and then removing dependencies.
39 It is not an error if a dependency to remove is not present.
40 .PP
41 Dependencies are package ids, and thus can't have whitespace or illegal
42 characters.  Illegal characters are not checked for, and whitespace
43 will be interpreted as separating dependencies.
44 .SH OPTIONS
45 .TP
46 .BI \-f package
47 specify the package file to find packages in
48 .TP
49 .B \-q
50 Suppress printing the set of package deps.
51 .TP
52 .B \-c
53 Clear the set of dependencies.
54 .TP
55 .BI \-s " dep"
56 Add a dependency to the set of dependencies to set.  Implies \-c.
57 .TP
58 .BI \-a " dep"
59 Add a dependency to the package.
60 .TP
61 .BI \-r " dep"
62 Remove a dependency from the package.
63 .SH EXAMPLES
64 .TP
65 .B zpm pkgdeps vim
66 List dependencies of the vim package.
67 .SH EXIT STATUS
68 0 on success non zero on failure
69 .SH FILES
70 /var/lib/zpm/local.db
71 .SH ENVIRONMENT
72 ZPMDB
73 .SH AUTHOR
74 Nathan Wagner
75 .SH SEE ALSO
76 .BR zpm (8)
77 .BR zpm-findpkg (8)