1 .TH zpm-contents 8 2018-12-08 "ZPM 0.3"
3 zpm-pathmod \- modify package file metadata
19 \fBzpm-pathmod\fR modifies package file metadata taking the specified
20 action on each path. An action can be \fBdelete\fR which will
21 delete the path from the package, \fIfield\fB=\fIvalue\fR which
22 sets the value of the given field, or \fIfield\fR which will
23 print the value of the given field.
25 The package being modified can be changed by prefixing an argument
26 with ':', and the path being modified can be changed by prefixing
27 and argument with a '+'.
29 Everything happens in a single transaction, so either all of
30 the changes specified will take place, or none of them will.
31 The actions will fail if a non-existent field is given.
35 take file paths as glob patterns
38 zpm pathmod foo /var/lib/foo delete
39 delete the /var/lib/foo file from the foo package
41 zpm pathmod foo /var/lib/foo mode=2755
42 set the mode of /var/lib/foo to 2755
44 zpm pathmod foo /var/lib/foo username
45 print the username of the owner of the /var/lib/foo file
47 0 on success non zero on failure