1 .TH "locks" "5" "4.25.0" "libzypp" "System Tools"
4 locks - libzypp locking file
8 The file \fI/etc/zypp/locks\fR is read by libzypp at startup if
9 \fIzypp.conf\fR allows it. The entries are used for initial locking of
10 packages. Locking a package means not allowing to install or uninstall
13 \fI attribute\fR\fB:\fR \fIvalue\fR
14 Where attributes and their values are described below.
16 Locks are separated by empty lines.
20 All attributes are lower-case.
24 specifies repository restriction. Only alias is accepted.
26 By default all repositories match.
30 resolvable type restriction
32 The values can be \fBpackage\fR, \fBpatch\fR, \fBpattern\fR, \fBproduct\fR and \fBsrcpackage\fR.
34 By default all types match.
38 if strings are matched case sensitive.
39 The values are \fBtrue\fR, \fBfalse\fR, \fBon\fR, \fBoff\fR.
41 The default is case insensitive.
45 status of object. Possible states are \fBinstalled\fR,
46 \fBnot-installed\fR and \fBall\fR. If more install statuses are
47 specified then the last one is used.
49 The values are \fBinstalled\fR for all packages which are installed, \fBnon-installed\fR for packages which can be installed or reinstalled and \fBall\fR for both.
51 The default is \fBall\fR.
55 type of string matching in values. Does not affect \fBtype\fR and \fBrepo\fR which must be specified exactly.
57 The values are \fBexact\fR, \fBsubstring\fR, \fBregex\fR for regular
58 expressions, \fBglob\fR for matching as on the command line, and \fBword\fR.
60 The default is \fBsubstring\fR.
64 String to be matched in multiple attributes. Should be restricted by
65 another attribute with empty value ( it is recommended, because without restriction expect some performance problems ).
69 Restrict the lock only to some versions. It contains two parts: an
70 optional operator and the version.
72 The operator is \fB==\fR,\fB!=\fR,\fB<\fR,\fB>\fR,\fB<=\fR,\fB>=\fR. If operator is not specified then \fB==\fR is used.
74 The version has the format
75 .RB [ epoch: ] version [ -release ].
77 Example: version: < 0:0.11.4-2
81 name of object (e.g. zypper)
89 architecture of object (e.g. x86_64, i586)
92 .B solvable_description
97 license text of objects which request accepting license by user
101 license of package (only for package) (e.g. GPL2)
105 keywords which specify package (only for package)
109 authors of package (only for package)
113 package group (only for package) (e.g. Development/Tools/Version Control )
116 .B update_reference_type
117 reference for update (e.g. bugzilla,cve) (only for patches)
124 This is the way YaST UI does it. Lock k3b (e.g. you don't want to update it).
138 This is the way "zypper addlock cross-*-gcc-icecream-backend" does it.
144 solvable_name: cross-*-gcc-icecream-backend
152 Do not install new GCC. This format is used when converting from the
153 openSUSE-10.3 lock format.
164 .B Anything named KDE
165 Locks everything which contains kde in the name.
172 .B Anything mentioning KDE
173 Locks everything which contains kde in the name, summary, or description.
183 solvable_description:
187 This manual page only covers the most important attributes. The
188 complete list is available at
189 http://en.opensuse.org/Libzypp/Locksfile
193 Josef Reidinger <jreidinger@suse.cz>
195 Manual page contributions by Martin Vidner <mvidner@suse.cz>.