Alpine 保存包到本地
一、介绍
- 在特殊情况下需要将离线包放到本地,然后再去使用本地包
- 包官网: https://pkgs.alpinelinux.org/packages?name=openjdk8&branch=v3.18&repo=&arch=x86_64&maintainer=
1.1、找到对应的包
- 由于版本不同,包也有差异,不一定有自己需要的包
二、下载包
2.1、下载 openjdk8
- 指定 -o 参数可以下载到指定目录中
- -R 同时下载依赖
# 将全部依赖下载到当前目录中 aka:/workspace# apk fetch -R openjdk8 Downloading alsa-lib-1.2.9-r1 Downloading brotli-libs-1.0.9-r14 Downloading busybox-1.36.1-r7 Downloading busybox-binsh-1.36.1-r7 Downloading ca-certificates-20240226-r0 Downloading encodings-1.0.7-r1 Downloading font-dejavu-2.37-r5 Downloading fontconfig-2.14.2-r3 Downloading freetype-2.13.0-r5 Downloading giflib-5.2.2-r0 Downloading java-cacerts-1.0-r1 Downloading java-common-0.5-r0 Downloading keyutils-libs-1.6.3-r3 Downloading krb5-conf-1.0-r2 Downloading krb5-libs-1.20.2-r0 Downloading lcms2-2.15-r2 Downloading libbsd-0.11.7-r1 Downloading libbz2-1.0.8-r5 Downloading libcom_err-1.47.0-r2 Downloading libcrypto3-3.1.7-r0 Downloading libexpat-2.6.3-r0 Downloading libffi-3.4.4-r2 Downloading libfontenc-1.1.7-r2 Downloading libgcc-12.2.1_git20220924-r10 Downloading libjpeg-turbo-2.1.5.1-r3 Downloading liblksctp-1.0.19-r3 Downloading libmd-1.0.4-r2 Downloading libpng-1.6.44-r0 Downloading libssl3-3.1.7-r0 Downloading libstdc++-12.2.1_git20220924-r10 Downloading libtasn1-4.19.0-r1 Downloading libverto-0.3.2-r2 Downloading libx11-1.8.7-r0 Downloading libxau-1.0.11-r2 Downloading libxcb-1.15-r1 Downloading libxcomposite-0.4.6-r3 Downloading libxdmcp-1.1.4-r2 Downloading libxext-1.3.5-r2 Downloading libxi-1.8.1-r0 Downloading libxrender-0.9.11-r3 Downloading libxtst-1.2.4-r2 Downloading mkfontscale-1.2.2-r3 Downloading musl-1.2.4-r2 Downloading nspr-4.35-r2 Downloading nss-3.94-r0 Downloading openjdk8-8.402.06-r0 Downloading openjdk8-jre-8.402.06-r0 Downloading openjdk8-jre-base-8.402.06-r0 Downloading openjdk8-jre-lib-8.402.06-r0 Downloading p11-kit-0.24.1-r2 Downloading p11-kit-trust-0.24.1-r2 Downloading pcsc-lite-libs-1.9.9-r3 Downloading sqlite-libs-3.41.2-r3 Downloading ssl_client-1.36.1-r7 Downloading zlib-1.2.13-r1
2.2、安装离线包
aka:/workspace# apk add *
(1/16) Upgrading busybox (1.36.1-r4 -> 1.36.1-r7)
Executing busybox-1.36.1-r7.post-upgrade
(2/16) Upgrading busybox-binsh (1.36.1-r4 -> 1.36.1-r7)
(3/16) Upgrading libcrypto3 (3.1.4-r0 -> 3.1.7-r0)
(4/16) Upgrading libssl3 (3.1.4-r0 -> 3.1.7-r0)
(5/16) Upgrading ssl_client (1.36.1-r4 -> 1.36.1-r7)
(6/16) Upgrading sqlite-libs (3.41.2-r2 -> 3.41.2-r3)
(7/16) Upgrading ca-certificates (20230506-r0 -> 20240226-r0)
(8/16) Upgrading libpng (1.6.39-r3 -> 1.6.44-r0)
(9/16) Upgrading giflib (5.2.1-r4 -> 5.2.2-r0)
(10/16) Upgrading krb5-libs (1.20.1-r1 -> 1.20.2-r0)
(11/16) Upgrading libx11 (1.8.4-r4 -> 1.8.7-r0)
(12/16) Upgrading nss (3.91-r0 -> 3.94-r0)
(13/16) Upgrading openjdk8-jre-lib (8.372.07-r0 -> 8.402.06-r0)
(14/16) Upgrading openjdk8-jre-base (8.372.07-r0 -> 8.402.06-r0)
(15/16) Upgrading openjdk8-jre (8.372.07-r0 -> 8.402.06-r0)
(16/16) Upgrading openjdk8 (8.372.07-r0 -> 8.402.06-r0)
Executing busybox-1.36.1-r7.trigger
Executing ca-certificates-20240226-r0.trigger
Executing java-common-0.5-r0.trigger
OK: 861 MiB in 166 packages
版权声明:
作者:Akiraka
链接:https://www.akiraka.net/linux/1599.html
来源:Akiraka
文章版权归作者所有,未经允许请勿转载。
THE END
1
二维码
海报
Alpine 保存包到本地
一、介绍
在特殊情况下需要将离线包放到本地,然后再去使用本地包
包官网: https://pkgs.alpinelinux.org/packages?name=openjdk8&branch=v3.18&repo=&arch=……
文章目录
关闭
共有 0 条评论