a quesion about selective package upgrading using zypper

$ zypper up -t patch
.......
The following packages are going to be upgraded:
  cyrus-sasl cyrus-sasl-crammd5 cyrus-sasl-digestmd5 cyrus-sasl-gssapi
cyrus-sasl-plain libopenssl0_9_8 openssl openssl-certs wireshark


The following NEW patches are going to be installed:
  cyrus-sasl libopenssl-devel wireshark

What if I want all of them, except wireshark? I obviously would like to avoid manually typing them all in, and avoid “locking” wireshark package. Surely there is some way to upgrade all except one selected package…

Not that I’m aware of. Perhaps you could file an enhancement request for a syntax to exclude packages by regexp. Note that if the package is included to satisfy dependencies, then excluding it may prevent updates of other packages, but that’s the logical consequence. In your case it looks like wireshark is an independent update.

Why don’t you want wireshark updated BTW?

Because I had wireshark opened, and didn’t want it to get updated, and interfere with the work I was doing. No other reason :slight_smile:

What syntax would u recommend? Maybe

zypper -v up -t package -wireshark\*

Probably something like

zypper up --exclude ‘wireshark*’

Probably too late for 11.2 even if accepted, maybe 11.3.

PS: I’m not a developer so this is all speculation.