mirror of
https://github.com/Kxsso/jcutmirror.git
synced 2026-03-27 15:27:02 +08:00
46 lines
972 B
Plaintext
46 lines
972 B
Plaintext
---
|
|
mirrorId: alpine
|
|
---
|
|
|
|
## Alpine 镜像使用帮助
|
|
|
|
### 地址
|
|
|
|
https://mirrors.jcut.edu.cn/alpine/
|
|
|
|
### 说明
|
|
|
|
Alpine Linux 软件源
|
|
|
|
### 收录架构
|
|
|
|
x86_64
|
|
|
|
### 使用说明
|
|
|
|
一般情况下,将 `/etc/apk/repositories` 文件中 Alpine 默认的源地址 `http://dl-cdn.alpinelinux.org/` 替换为 `http://mirrors.jcut.edu.cn/` 即可。
|
|
|
|
可以使用如下命令:
|
|
|
|
```shell
|
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.jcut.edu.cn/g' /etc/apk/repositories
|
|
```
|
|
|
|
也可以直接编辑 `/etc/apk/repositories` 文件。以下是 v3.19 版本的参考配置:
|
|
|
|
```text
|
|
https://mirrors.jcut.edu.cn/alpine/v3.19/main
|
|
https://mirrors.jcut.edu.cn/alpine/v3.19/community
|
|
```
|
|
|
|
也可以使用 `latest-stable` 指向最新的稳定版本:
|
|
|
|
```text
|
|
https://mirrors.jcut.edu.cn/alpine/latest-stable/main
|
|
https://mirrors.jcut.edu.cn/alpine/latest-stable/community
|
|
```
|
|
|
|
### 注意
|
|
|
|
更改完 `/etc/apk/repositories` 文件后请运行 `apk update` 更新索引以生效。
|