麒麟Linuk离线安装openjdk

2023-12-29 21:40:19

麒麟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

文章来源:https://blog.csdn.net/qq_20025777/article/details/135270187
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。