On 21.10.2022 14:53, Bjoern Voigt wrote:
On openSUSE 15.4 I want to ignore the patch patch:openSUSE-SLE-15.4-2022-2969-1.noarch, but in general I want to install all available patches.
But what it the correct syntax for this? I tried several variants, but still YaST wants to install patch:openSUSE-SLE-15.4-2022-2969-1.noarch.
# zypper help addlock addlock (al) [OPTIONS] <LOCKSPEC>...
Add a package lock.
LOCKSPEC is formed by '[KIND:]NAME[ OP EDITION]', where NAME may also be a glob pattern using * and ? wildcard characters. Non-package types may to have their KIND: string prepended (e.g. 'patch:foo') or use the commands --type option.
The basic form will lock all editions of the matching items. You can optionally restrict the lock to match a specific edition or edition range using =, <, <=, >, >= or != followed an EDITION.
Command options:
-t, --type <TYPE> Type of package (package, patch, pattern, product). -r, --repo <ALIAS|#|URI> Restrict the lock to the specified repository. -m, --comment <STRING> Reason for specific lock. Default: comments string
# zypper addlock -t patch openSUSE-SLE-15.4-2022-2969-1.noarch Specified lock has been successfully added. # zypper addlock -t patch openSUSE-SLE-15.4-2022-2969-1 Specified lock has been successfully added. # zypper addlock -t patch openSUSE-SLE-15.4-2022-2969-1\* Specified lock has been successfully added. # zypper addlock -t patch patch:openSUSE-SLE-15.4-2022-2969-1.noarch # zypper addlock -t patch patch:openSUSE-SLE-15.4-2022-2969-1 # zypper addlock -t patch patch:openSUSE-SLE-15.4-2022-2969-1\*
-1 is not part of patch name bor@10:~> zypper ll # | Name | Type | Repository | Comment --+-----------------------------+---------+------------+-------- 1 | kernel-firmware* | package | (any) | 2 | openSUSE-SLE-15.4-2022-2969 | patch | (any) | 3 | ucode-* | package | (any) | bor@10:~> sudo zypper patch --with-optional Loading repository data... Reading installed packages... Patch 'openSUSE-SLE-15.4-2022-2969-1' is locked. Use 'zypper in --force patch:openSUSE-SLE-15.4-2022-2969' to install it, or unlock it using 'zypper rl patch:openSUSE-SLE-15.4-2022-2969'.