4 :man source: SUSE Linux
9 locks - libzypp locking file
14 The file '/etc/zypp/locks' is read by libzypp at start-up if 'zypp.conf' allows it. The entries are used for initial locking of packages. Locking a package means not allowing to install or uninstall it.
16 Valid entries are of the form:
18 'attribute'*:* 'value'::
19 Where attributes and their values are described below.
21 Locks are separated by an empty lines.
26 All attributes are lower-case.
29 specifies repository restriction. Only alias is accepted. +
30 By default all repositories match.
33 resolvable type restriction. The values can be *package*, *patch*, *pattern*, *product* and *srcpackage*. +
34 By default all types match.
38 if strings are matched case sensitive. The values are *true*, *false*, *on*, *off*. +
39 The default is case insensitive.
43 status of object. Possible states are *installed*, *not-installed* and *all*. If more install statuses are specified then the last one is used. The values are *installed* for all packages which are installed, *non-installed* for packages which can be installed or reinstalled and *all* for both. +
48 type of string matching in values. Does not affect *type* and *repo* which must be specified exactly. The values are *exact*, *substring*, *regex* for regular expressions, *glob* for matching as on the command line, and *word*. +
49 The default is *substring*.
52 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).
55 Restrict the lock only to some versions. It contains two parts: an optional operator and the version. +
56 The operator is *==*, *!=*, *<*, *>*, *<=*, *>=*. If operator is not specified then *==* is used. +
57 The version has the format ['epoch'*:*+]+'version'[*-*'release']. +
58 Example: *version: < 0:0.11.4-2*
61 name of object (e.g. zypper)
67 architecture of object (e.g. x86_64, i586)
69 *solvable_description*::
73 license text of objects which request accepting license by user
76 license of package (only for package) (e.g. GPL2)
79 keywords which specify package (only for package)
82 authors of package (only for package)
85 package group (only for package) (e.g. Development/Tools/Version Control )
87 *update_reference_type*::
88 reference for update (e.g. bugzilla,cve) (only for patches)
94 This is the way YaST UI does it. Lock k3b (e.g. you don't want to update it).
104 This is the way "zypper addlock cross-*-gcc-icecream-backend" does it.
108 solvable_name: cross-*-gcc-icecream-backend
114 Do not install new GCC. This format is used when converting from the openSUSE-10.3 lock format.
122 *Anything named KDE*::
123 Locks everything which contains kde in the name.
129 *Anything mentioning KDE*::
130 Locks everything which contains kde in the name, summary, or description.
136 solvable_description:
142 This manual page only covers the most important attributes. The complete list is available at http://en.opensuse.org/Libzypp/Locksfile
147 Josef Reidinger <jreidinger@suse.cz>
148 Manual page contributions by Martin Vidner <mvidner@suse.cz>.