From cbea97ef1170ee5ce3d406cebcaaebdb736005b3 Mon Sep 17 00:00:00 2001 From: mxd Date: Sun, 17 May 2026 02:35:09 +0800 Subject: [PATCH 1/5] =?UTF-8?q?chores:=20=E4=BF=AE=E6=94=B9=E8=8B=A5?= =?UTF-8?q?=E5=B9=B2=E9=95=9C=E5=83=8F=E6=BA=90=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?freebsd-pkg=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 8 + wiki/mirror-wiki/debian-security/_index.md | 26 ++-- wiki/mirror-wiki/debian/_index.md | 33 ++--- wiki/mirror-wiki/debian/deb822.md | 67 +++++++++ wiki/mirror-wiki/fedora/_index.md | 8 +- wiki/mirror-wiki/freebsd-pkg/_index.md | 165 +++++++++++++++++++++ yarn.lock | 4 + 7 files changed, 277 insertions(+), 34 deletions(-) create mode 100644 .gitignore create mode 100644 wiki/mirror-wiki/debian/deb822.md create mode 100644 wiki/mirror-wiki/freebsd-pkg/_index.md create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac979fc --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.vscode/ +.idea/ +node_modules/ +dist/ +.DS_Store +.yarn.lock +.env +.env.test \ No newline at end of file diff --git a/wiki/mirror-wiki/debian-security/_index.md b/wiki/mirror-wiki/debian-security/_index.md index 379d233..4bb2caf 100644 --- a/wiki/mirror-wiki/debian-security/_index.md +++ b/wiki/mirror-wiki/debian-security/_index.md @@ -11,23 +11,20 @@ https://mirrors.cqu.edu.cn/debian-security ## 说明 -Debian 安全更新 +Debian 安全更新仓库 ## 收录架构 -- x86 -- x86_64 -- armel -- arm64 -- ppc64el -- source code +Debian 支持的所有架构,如 amd64, arm64, armel, armhf, i386, ppc64el, riscv64, s390x 等,以及 source code。 + +且随 Debian 支持的架构变化而变化。 ## 收录版本 -- old stable (Debian 8 jessie) -- old stable (Deibian 9 stretch) -- stable (Debian 10 buster) -- testing (bullseye) +- oldoldstable (bullseye) +- oldstable (bookworm) +- stable (trixie) +- testing (forky) ## 使用说明 @@ -55,5 +52,10 @@ su -c "sed -i 's|#*deb http://security.debian.org|deb https://mirrors.cqu.edu.cn 但我们更推荐更安全的做法——`sudo`。[如何配置`sudo`](/wiki/mirror-wiki/debian/sudo)。 - 另外,您亦可手动编辑`/etc/apt/sources.list`。 + +### DEB822 + +DEB822 是新版的 Debian 软件仓库配置格式。推荐 Debian 12 (Bookworm) 及以上版本使用新版格式。 + +[参考 DEB822 配置](/wiki/mirror-wiki/debian/deb822) diff --git a/wiki/mirror-wiki/debian/_index.md b/wiki/mirror-wiki/debian/_index.md index 78d3c58..dfe2fc3 100644 --- a/wiki/mirror-wiki/debian/_index.md +++ b/wiki/mirror-wiki/debian/_index.md @@ -14,28 +14,27 @@ Debian 软件仓库 ## 收录架构 -- x86 -- amd64 (x86_64) -- armel -- armhl -- arm64 -- mipsel -- mips64el -- ppc64el -- s390x -- 源代码 +Debian 支持的所有架构,如 amd64, arm64, armel, armhf, i386, ppc64el, riscv64, s390x 等,以及 source code。 + +且随 Debian 支持的架构变化而变化。 ## 收录版本 -- oldoldstable (stretch) -- oldstable (buster) -- stable (bullseye) -- testing (bookworm) +- oldoldstable (bullseye) +- oldstable (bookworm) +- stable (trixie) +- testing (forky) - unstable (sid) - experimental ## 使用说明 +### DEB822 + +DEB822 是新版的 Debian 软件仓库配置格式。推荐 Debian 12 (Bookworm) 及以上版本使用新版格式。 + +[参考 DEB822 配置](/wiki/mirror-wiki/debian/deb822) + ### Debian Stable 默认情况下,以下命令可以将默认软件源(`deb.debian.org/debian`)替换为重庆大学镜像站(`mirrors.cqu.edu.cn/debian`)。 @@ -83,7 +82,7 @@ deb http://mirrors.cqu.edu.cn/debian stable-updates main contrib non-free non-fr # deb-src http://mirrors.cqu.edu.cn/debian stable-proposed-updates main contrib non-free non-free-firmware ``` -## Debian Unstable (sid) +### Debian Unstable (sid) Debian Sid 需要且仅仅需要按照如下样例设置自己的`sources.list`: @@ -92,8 +91,6 @@ deb https://mirrors.cqu.edu.cn/debian sid main contrib non-free non-free-firmwar # deb-src http://mirrors.cqu.edu.cn/debian sid main contrib non-free non-free-firmware ``` - - {{% notice warning %}} -为了避免更新冲突导致问题,请回避使用 `apt full-upgrade`,并仅仅使用 `apt upgrade` +为了避免更新冲突导致问题,请避免使用 `apt full-upgrade`, 并推荐使用 `apt upgrade` {{% /notice %}} \ No newline at end of file diff --git a/wiki/mirror-wiki/debian/deb822.md b/wiki/mirror-wiki/debian/deb822.md new file mode 100644 index 0000000..6ab0c0b --- /dev/null +++ b/wiki/mirror-wiki/debian/deb822.md @@ -0,0 +1,67 @@ +--- +title: "Debian Deb822 配置帮助" +draft: false +author: "mxd" +weight: 2 +filepath: '/wiki/mirror-wiki/debian/deb822' +--- + +## 说明 + +DEB822 是新版的 Debian 软件仓库配置格式。推荐 Debian 12 (Bookworm) 及以上版本使用新版格式。从 Debian 11 (Bullseye) 开始被引入,并在 Debian 12 (Bookworm) 中成为了默认配置。 + +DEB822 格式旨在取代传统的单行 sources.list 格式,以提供更清晰、更强大、更不易出错的配置体验。 + +## 配置 + +### Debian Stable + +对于 Debian Stable 版本,可以修改为以下内容: + +``` +Types: deb +URIs: http://mirrors.cqu.edu.cn/debian +Suites: stable stable-updates +Components: main contrib non-free non-free-firmware +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg + +# 按需选择更改安全更新源 +Types: deb +URIs: http://security.debian.org/debian-security +Suites: stable-security +Components: main contrib non-free non-free-firmware +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg +``` + +### Debian Testing + +对于 Debian Testing 版本,可以修改为以下内容: + +``` +Types: deb +URIs: http://mirrors.cqu.edu.cn/debian +Suites: testing testing-updates +Components: main contrib non-free non-free-firmware +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg + +# 按需选择更改安全更新源 +Types: deb +URIs: http://security.debian.org/debian-security +Suites: testing-security +Components: main contrib non-free non-free-firmware +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg +``` + +### Debian Sid (Unstable) + +对于 Debian Sid 版本,可以修改为以下内容: + +``` +Types: deb +URIs: http://mirrors.cqu.edu.cn/debian +Suites: sid +Components: main contrib non-free non-free-firmware +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg +``` + +补充一下: Debian Sid 没有安全更新源,因此不需要配置安全更新部分。 \ No newline at end of file diff --git a/wiki/mirror-wiki/fedora/_index.md b/wiki/mirror-wiki/fedora/_index.md index 0ac016c..80d4ca0 100644 --- a/wiki/mirror-wiki/fedora/_index.md +++ b/wiki/mirror-wiki/fedora/_index.md @@ -40,13 +40,13 @@ mv /etc/yum.repos.d/fedora-updates-modular.repo /etc/yum.repos.d/fedora-updates- 然后执行: ```bash -wget -O /etc/yum.repos.d/fedora.repo http://mirrors.cqu.edu.cn/repo/fedora/fedora.repo -wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.cqu.edu.cn/repo/fedora/fedora-updates.repo +wget -O /etc/yum.repos.d/fedora.repo http://mirrors.cqu.edu.cn/repo/fedora/fedora.repo +wget -O /etc/yum.repos.d/fedora-updates.repo http://mirrors.cqu.edu.cn/repo/fedora/fedora-updates.repo ``` ```bash -wget -O /etc/yum.repos.d/fedora-modular.repo http://mirrors.cqu.edu.cn/repo/fedora/fedora-modular.repo -wget -O /etc/yum.repos.d/fedora-updates-modular.repo http://mirrors.cqu.edu.cn/repo/fedora/fedora-updates-modular.repo +wget -O /etc/yum.repos.d/fedora-modular.repo http://mirrors.cqu.edu.cn/repo/fedora/fedora-modular.repo +wget -O /etc/yum.repos.d/fedora-updates-modular.repo http://mirrors.cqu.edu.cn/repo/fedora/fedora-updates-modular.repo ``` 再执行: diff --git a/wiki/mirror-wiki/freebsd-pkg/_index.md b/wiki/mirror-wiki/freebsd-pkg/_index.md new file mode 100644 index 0000000..3359c4b --- /dev/null +++ b/wiki/mirror-wiki/freebsd-pkg/_index.md @@ -0,0 +1,165 @@ +--- +title: "FreeBSD pkg 源使用帮助" +draft: false +author: "mxd" +weight: 2 +filepath: '/wiki/mirror-wiki/freebsd-pkg/_index' +--- + +## 地址 + +http://mirrors.cqu.edu.cn/git/freebsd-pkg + +## 说明 + +FreeBSD 预编译软件包的 **动态缓存**。 + +## 收录架构与版本 + +所有受官方支持版本的 amd64 和 aarch64 架构,详细参见 [FreeBSD pkg 地址](https://pkg.freebsd.org/)。 + +仓库提供两种软件包分支:季度更新的 quarterly 与滚动更新的 latest。两者仅影响第三方软件包(ports)。 + +## 注意事项 + +{{% notice info %}} +软件包分支与 FreeBSD 基本系统版本无关。不同 RELEASE / STABLE / CURRENT 均可使用 quarterly 或 latest。 + +**但并非所有版本和架构都同时提供两种分支,例如 CURRENT 通常仅提供 latest。** + +从 FreeBSD 15.0-RELEASE 起,若在安装系统时或事后手动启用了 pkgbase,则基本系统组件也会以软件包形式由 pkg 管理。 + +此时,`/usr/local/etc/pkg/repos` 目录下将会默认带有一个配置文件。 + +在这种情况下,请先检查 `/usr/local/etc/pkg/repos` 是否为空,并确认 `/usr/local/etc/pkg` 下不存在旧配置文件;如存在请先备份。 + +请勿将文件命名为其他 `.conf` 以外的名称,避免覆盖现有设置。 + +完成确认后,再写入对应的镜像配置到 `/usr/local/etc/pkg/repos/cqumirror.conf`。 +{{% /notice %}} + +## 使用说明 + +{{% notice warn %}} +在操作前请做好相应备份。 + +此处只列出了 `quaterly` 季度分支,若有其他需求,请自行修改。 + +为了避免可能出现的向后兼容问题,基本系统中未预置真实的 pkg(8) 工具,需要在线安装。参见 [man pkg(7)](https://man.freebsd.org/cgi/man.cgi?query=pkg)。安装方法为直接输入命令 `pkg` 根据提示进行确认安装。为了避免因网络问题造成安装失败,建议先按以下方法换源后再安装 pkg。 + +FreeBSD pkg 包管理器的官方源的配置路径为 `/etc/pkg/FreeBSD.conf`。不建议直接修改此文件:该配置文件是 FreeBSD 基本系统的一部分,会随着基本系统的更新而变化。 + +应新创建路径及文件 `/usr/local/etc/pkg/repos/cqumirror.conf` 来覆盖配置,文件内容如下 +{{% /notice %}} + +### FreeBSD 15.X-RELEASE + +```yaml[/usr/local/etc/pkg/repos/cqumirror.conf] +cqumirror-ports: { + url: "https://mirrors.cqu.edu.cn/freebsd-pkg/${ABI}/quarterly", + mirror_type: "none", + signature_type: "fingerprints", + fingerprints: "/usr/share/keys/pkg", + enabled: yes +} + +cqumirror-ports-kmods: { + url: "https://mirrors.cqu.edu.cn/freebsd-pkg/${ABI}/kmods_quarterly_${VERSION_MINOR}", + mirror_type: "none", + signature_type: "fingerprints", + fingerprints: "/usr/share/keys/pkg", + enabled: yes +} + +FreeBSD-ports: { + enabled: no +} + +FreeBSD-ports-kmods: { + enabled: no +} + +# 仅当启用 pkgbase 时才添加以下内容 +#cqumirror-base: { +# url: "https://mirrors.cqu.edu.cn/freebsd-pkg/${ABI}/base_release_${VERSION_MINOR}", +# mirror_type: "none", +# signature_type: "fingerprints", +# fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}", +# enabled: yes +#} +# +#FreeBSD-base: { +# enabled: no +#} +``` + +### FreeBSD 14.X-RELEASE + +```yaml[/usr/local/etc/pkg/repos/cqumirror.conf] +cqumirror: { + url: "https://mirrors.cqu.edu.cn/freebsd-pkg/${ABI}/quarterly", + mirror_type: "none", + signature_type: "fingerprints", + fingerprints: "/usr/share/keys/pkg", + enabled: yes +} + +cqumirror-kmods: { + url: "https://mirrors.cqu.edu.cn/freebsd-pkg/${ABI}/kmods_quarterly_${VERSION_MINOR}", + mirror_type: "none", + signature_type: "fingerprints", + fingerprints: "/usr/share/keys/pkg", + enabled: yes +} + +FreeBSD: { + enabled: no +} + +FreeBSD-kmods: { + enabled: no +} +``` + +修改配置后,运行 `pkg update -f` 更新索引。 + +{{% notice warn %}} +如未配置 [pkgbase](https://wiki.freebsd.org/pkgbase),则 pkg 仅管理用户安装的第三方软件(Port),无法更新基本系统。基本系统与通过 pkg 安装的软件互不干涉。 +{{% /notice %}} + +## 相关链接 + +{{% notice link %}} +官方主页 +`https://www.freebsd.org` +{{% /notice %}} + + +{{% notice link %}} +邮件列表 +`https://www.freebsd.org/community/mailinglists` +{{% /notice %}} + + +{{% notice link %}} +论坛 +`https://forums.freebsd.org` +{{% /notice %}} + + +{{% notice link %}} +文档 +`https://docs.freebsd.org` +{{% /notice %}} + + +{{% notice link %}} +Wiki +`https://wiki.freebsd.org` +{{% /notice %}} + + +{{% notice link %}} +官方 Discord +`https://discord.com/invite/freebsd` +{{% /notice %}} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..fb57ccd --- /dev/null +++ b/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + From b7c6d7b8baab237d653ad92d48e7c88e5e531d9d Mon Sep 17 00:00:00 2001 From: mxd Date: Sun, 17 May 2026 02:37:22 +0800 Subject: [PATCH 2/5] fix: add yarn.lock in gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ac979fc..21a1e7c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ dist/ .DS_Store .yarn.lock .env -.env.test \ No newline at end of file +.env.test +yarn.lock \ No newline at end of file From 10b798b417397425cfce88d0f033b67ad2ea5910 Mon Sep 17 00:00:00 2001 From: mxd Date: Sun, 17 May 2026 02:37:47 +0800 Subject: [PATCH 3/5] Delete yarn.lock --- yarn.lock | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 yarn.lock diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index fb57ccd..0000000 --- a/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - From 4f22fcf474c68a7e1e3c729b6ffcc3aa4bce1d93 Mon Sep 17 00:00:00 2001 From: mxd Date: Sun, 17 May 2026 02:41:01 +0800 Subject: [PATCH 4/5] fix: typo --- wiki/mirror-wiki/debian/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/mirror-wiki/debian/_index.md b/wiki/mirror-wiki/debian/_index.md index dfe2fc3..98a7798 100644 --- a/wiki/mirror-wiki/debian/_index.md +++ b/wiki/mirror-wiki/debian/_index.md @@ -82,7 +82,7 @@ deb http://mirrors.cqu.edu.cn/debian stable-updates main contrib non-free non-fr # deb-src http://mirrors.cqu.edu.cn/debian stable-proposed-updates main contrib non-free non-free-firmware ``` -### Debian Unstable (sid) +### Debian Sid (Unstable) Debian Sid 需要且仅仅需要按照如下样例设置自己的`sources.list`: From d99c40c1e48083dbdf215fa5b5218839cb9e4a32 Mon Sep 17 00:00:00 2001 From: mxd Date: Wed, 20 May 2026 02:31:35 +0800 Subject: [PATCH 5/5] fix: update support architectures --- wiki/mirror-wiki/debian-security/_index.md | 4 +--- wiki/mirror-wiki/debian/_index.md | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/wiki/mirror-wiki/debian-security/_index.md b/wiki/mirror-wiki/debian-security/_index.md index 4bb2caf..c189069 100644 --- a/wiki/mirror-wiki/debian-security/_index.md +++ b/wiki/mirror-wiki/debian-security/_index.md @@ -15,9 +15,7 @@ Debian 安全更新仓库 ## 收录架构 -Debian 支持的所有架构,如 amd64, arm64, armel, armhf, i386, ppc64el, riscv64, s390x 等,以及 source code。 - -且随 Debian 支持的架构变化而变化。 +Debian 支持的部分架构,如 amd64, arm64, armhf, i386, riscv64, 以及 source code。 ## 收录版本 diff --git a/wiki/mirror-wiki/debian/_index.md b/wiki/mirror-wiki/debian/_index.md index 98a7798..d86cdc5 100644 --- a/wiki/mirror-wiki/debian/_index.md +++ b/wiki/mirror-wiki/debian/_index.md @@ -14,9 +14,7 @@ Debian 软件仓库 ## 收录架构 -Debian 支持的所有架构,如 amd64, arm64, armel, armhf, i386, ppc64el, riscv64, s390x 等,以及 source code。 - -且随 Debian 支持的架构变化而变化。 +Debian 支持的部分架构,如 amd64, arm64, armhf, i386, riscv64, 以及 source code。 ## 收录版本