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 | ~ | ● zypper up -D -r Local jdk-16 | Loading repository data... | Reading installed packages... | 'jdk-16' not found in package names. Trying capabilities. | No provider of 'jdk-16' found. | Resolving package dependencies... | Nothing to do. | @19:24:46,root@pinto rc=104 | ~ | ● zypper up -D -r Local jdk-16.0.1 | Loading repository data... | Reading installed packages... | No update candidate for 'jdk-16.0.1-2000:16.0.1-ga.x86_64'. The highest available version is already installed. | Resolving package dependencies... | Nothing to do. | @19:24:50,root@pinto rc=0 but, | ~ | ● ls -l /usr/local/RPMrepository/jdk* | -rw-r--r--+ 1 leslie users 166M 2021-06-25 04:57 /usr/local/RPMrepository/jdk-14.0.2_linux-x64_bin.rpm | -rw-r--r--+ 1 leslie users 153M 2021-06-24 18:25 /usr/local/RPMrepository/jdk-16.0.1_linux-x64_bin.rpm | -rw-r--r--+ 1 leslie users 155M 2021-09-24 17:52 /usr/local/RPMrepository/jdk-17_linux-x64_bin.rpm | @19:26:51,root@pinto rc=0 Leslie -- Distribution: openSUSE Leap 15.3 x86_64