3 .\" Author: [see the "AUTHORS" section]
4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
10 .TH "LOCKS" "5" "10/02/2014" "libzypp" "LIBZYPP"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 locks \- libzypp locking file
34 The file \fI/etc/zypp/locks\fR is read by libzypp at start\-up if \fIzypp\&.conf\fR allows it\&. The entries are used for initial locking of packages\&. Locking a package means not allowing to install or uninstall it\&.
36 Valid entries are of the form:
38 \fIattribute\fR\fB:\fR \fIvalue\fR
40 Where attributes and their values are described below\&.
43 Locks are separated by an empty lines\&.
46 All attributes are lower\-case\&.
50 specifies repository restriction\&. Only alias is accepted\&.
52 By default all repositories match\&.
57 resolvable type restriction\&. The values can be
65 By default all types match\&.
70 if strings are matched case sensitive\&. The values are
76 The default is case insensitive\&.
81 status of object\&. Possible states are
85 \fBall\fR\&. If more install statuses are specified then the last one is used\&. The values are
87 for all packages which are installed,
89 for packages which can be installed or reinstalled and
99 type of string matching in values\&. Does not affect
103 which must be specified exactly\&. The values are
107 for regular expressions,
109 for matching as on the command line, and
118 String to be matched in multiple attributes\&. Should be restricted by another attribute with empty value (it is recommended, because without restriction expect some performance problems)\&.
123 Restrict the lock only to some versions\&. It contains two parts: an optional operator and the version\&.
131 \fB>=\fR\&. If operator is not specified then
135 The version has the format [\fIepoch\fR\fB:\fR]\fIversion\fR[\fB\-\fR\fIrelease\fR]\&.
138 \fBversion: < 0:0\&.11\&.4\-2\fR
143 name of object (e\&.g\&. zypper)
146 \fBsolvable_summary\fR
153 architecture of object (e\&.g\&. x86_64, i586)
156 \fBsolvable_description\fR
158 description of object
163 license text of objects which request accepting license by user
166 \fBsolvable_license\fR
168 license of package (only for package) (e\&.g\&. GPL2)
171 \fBsolvable_keywords\fR
173 keywords which specify package (only for package)
176 \fBsolvable_authors\fR
178 authors of package (only for package)
183 package group (only for package) (e\&.g\&. Development/Tools/Version Control )
186 \fBupdate_reference_type\fR
188 reference for update (e\&.g\&. bugzilla,cve) (only for patches)
194 This is the way YaST UI does it\&. Lock k3b (e\&.g\&. you don\(cqt want to update it)\&.
201 \-\-\-\-\-locks\-\-\-\-\-
211 \fBPackage Wildcard\fR
213 This is the way "zypper addlock cross\-*\-gcc\-icecream\-backend" does it\&.
220 \-\-\-\-\-locks\-\-\-\-\-
222 solvable_name: cross\-*\-gcc\-icecream\-backend
232 Do not install new GCC\&. This format is used when converting from the openSUSE\-10\&.3 lock format\&.
239 \-\-\-\-\-locks\-\-\-\-\-
248 \fBAnything named KDE\fR
250 Locks everything which contains kde in the name\&.
257 \-\-\-\-\-locks\-\-\-\-\-
264 \fBAnything mentioning KDE\fR
266 Locks everything which contains kde in the name, summary, or description\&.
273 \-\-\-\-\-locks\-\-\-\-\-
277 solvable_description:
284 This manual page only covers the most important attributes\&. The complete list is available at http://en\&.opensuse\&.org/Libzypp/Locksfile
287 Josef Reidinger <jreidinger@suse\&.cz> Manual page contributions by Martin Vidner <mvidner@suse\&.cz>\&.