I want to remove jdk-16 and install jdk-17.
| ~
|● zypper se -i jdk-16
|Loading repository data...
|Reading installed packages...
|
|S | Name | Summary | Type
|---+------------+------------------------------------------------+--------
|i+ | jdk-16.0.1 | Java Platform Standard Edition Development Kit | package
|@18:00:29,root@pinto rc=0
|~
|● zypper rm jdk-16.0.1
|Reading installed packages...
|Resolving package dependencies...
|
|The following 4 packages are going to be REMOVED:
| jdk-16.0.1 liblayout libreoffice-base pentaho-reporting-flow-engine
|4 packages to remove.
|After the operation, 306.1 MiB will be freed.
|Continue? [y/n/v/...? shows all options] (y): n
|@18:00:35,root@pinto rc=4
Notice that (particularly) libreoffice-base will be removed. I want to keep that. zypper help rm says,
|~
|● zypper help rm
|remove (rm) [OPTIONS] <CAPABILITY> ...
|
|Remove packages with specified capabilities. A capability is NAME[.ARCH][OP<VERSION>], where OP is
|one of <, <=, =, >=, >.
|
| Command options:
|
|-t, --type <TYPE> Type of package (package, patch, pattern, product).
|-n, --name Select packages by plain name, not by capability. Default: false
|-C, --capability Select packages solely by capability. Default: false
| --details Show the detailed installation summary. Default: false
|-r, --repo