麒麟Linuk安装openjdk

文章目录

  • 麒麟LInuk依赖包下载地址:
  • 查看系统的JDK安装包
  • 安装openjdk安装包:
  • 卸载openjdk安装包:

麒麟LInuk依赖包下载地址:

百度网盘:
链接:https://pan.baidu.com/s/1UMTeL6NHvEavaYpqcXdCRA
提取码:dh1d

官网:
https://update.cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/updates/aarch64/Packages/

查看系统的JDK安装包

rpm -qa|grep jdk

安装openjdk安装包:

rpm -ivh java-1.8.0-openjdk-1.8.0.392.b08-2.p01.ky10.aarch64.rpm
rpm -ivh java-1.8.0-openjdk-headless-1.8.0.392.b08-2.p01.ky10.aarch64.rpm
rpm -ivh java-11-openjdk-11.0.20.8-2.ky10.aarch64.rpm
rpm -ivh java-11-openjdk-headless-11.0.20.8-2.ky10.aarch64.rpm
rpm -ivh copy-jdk-configs-4.0-1.ky10.noarch.rpm

注意headless版本号是否和openjdk一致

卸载openjdk安装包:

rpm -e --nodeps java-1.8.0-openjdk
rpm -e --nodeps java-1.8.0-openjdk-headless
rpm -e --nodeps java-11-openjdk
rpm -e --nodeps java-11-openjdk-headless
rpm -e --nodeps copy-jdk-configs

你可能感兴趣的:(kylin,linux,jdk)