On 25/09/2021 02.29, J Leslie Turriff wrote:
On 2021-09-24 18:32:55 Carlos E. R. wrote:
|On 25/09/2021 01.10, J Leslie Turriff wrote: |> 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, | |Don't remove jdk, libreoffice needs it. | |You can not remove jdk-16 and then install jdk-17, instead you have to |upgrade jdk-16 to jdk-17 in one operation. So, | ~ | ● zypper se -is jdk | Loading repository data... | Reading installed packages... | | S | Name | Type | Version | Arch | Repository | ---+--------------------------+---------+------------------+--------+------------------------------------------------------------- | i | java-11-openjdk | package | 11.0.12.0-3.59.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15 | i | java-11-openjdk-headless | package | 11.0.12.0-3.59.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15 | i+ | jdk-16.0.1 | package | 2000:16.0.1-ga | x86_64 | Local | @19:24:36,root@pinto rc=0 | ~ | ● zypper up -D -r Local jdk | Loading repository data... | Reading installed packages... | 'jdk' not found in package names. Trying capabilities. | Resolving package dependencies... | Nothing to do. | @19:24:43,root@pinto rc=0
Probably the name is "jdk-16.0.1", so jdk finds nothing. Then you have to find another incantation, like install jdk-17 first. Or use rpm command instead, with --no-deps. -- Saludos/Cheers Carlos E. R.