Hope2333 · Termux

Termux 专属手动配置 · Hope2333


推荐先用一键脚本:/repo/ install.sh(自动检测 Termux、配置统一源并安装 hope2333-mirrorlist 包、自动迁移旧配置、幂等)。以下为手动配置方式。

Pacman 源配置(统一源 + mirrorlist 包)

  1. 将统一节追加到 $PREFIX/etc/pacman.conf 末尾:
[hope2333]
Server = https://github.com/Hope2333/codegraph-termux/releases/latest/download/
Server = https://github.com/Hope2333/opencode-termux/releases/latest/download/
Server = https://github.com/Hope2333/MiMoCode-Termux/releases/download/Push260829/
Server = https://github.com/Hope2333/freebuff-termux/releases/latest/download/
Server = https://github.com/Hope2333/codebuff-termux/releases/latest/download/
Server = https://hope2333.github.io/repo/Termux/pacman/
SigLevel = Optional TrustAll
  1. 安装 mirrorlist 包:pacman -Sy && pacman -S hope2333-mirrorlist(包安装后钩子把手动节替换为 Include = /etc/pacman.d/hope2333-mirrorlist.conf 一行——托管 conf 自带节头与 Server/SigLevel,pacman.conf 内保留同名节会双重注册丢 Server,此后源变更随包升级生效)

已有旧版 [hope2333-meta] 引导节或旧 [hope2333] 块(单 Server 或多 Server):整体替换为本统一节,勿追加——重复注册会报 database already registered;或直接重跑 install.sh 自动迁移。

APT 源配置(引导源 + mirrorlist 包)

  1. 将引导行写入 $PREFIX/etc/apt/sources.list.d/hope2333-bootstrap.list:
deb [trusted=yes arch=aarch64] https://hope2333.github.io/repo/Termux/apt/ ./
  1. 安装 mirrorlist 包:apt update && apt install hope2333-mirrorlist(包内写入 hope2333.list,5 行 flat,指向各仓 Release latest)

旧 deb .../repo/Termux/apt/ stable main 行已失效(io 不再托管 apt 仓),请移除或替换为引导行。

手动配置(不装 hope2333-mirrorlist 包)
deb [trusted=yes arch=aarch64] https://github.com/Hope2333/codegraph-termux/releases/latest/download/ ./
deb [trusted=yes arch=aarch64] https://github.com/Hope2333/opencode-termux/releases/latest/download/ ./
deb [trusted=yes arch=aarch64] https://github.com/Hope2333/MiMoCode-Termux/releases/download/Push260829/ ./
deb [trusted=yes arch=aarch64] https://github.com/Hope2333/freebuff-termux/releases/latest/download/ ./
deb [trusted=yes arch=aarch64] https://github.com/Hope2333/codebuff-termux/releases/latest/download/ ./

统一源节与 hope2333-mirrorlist 包内容一致;MiMoCode 为预发布渠道,显式钉在 Push260829(GitHub 禁止 prerelease 为 Latest,releases/latest 会 404)。

未来将引入签名校验(repo-add -s / Release 签名),当前 v1 无签名。

← 返回 /repo/ 软件源总览