安装指引
各项目的安装方式取决于是否已进入 hope2333 软件源。
配置软件源
安装前需先配置 hope2333 软件源。推荐一键脚本(自动迁移旧配置):
curl -fsSL https://hope2333.github.io/repo/install.sh | sh或手动配置引导源 + mirrorlist 包。
pacman 客户端将引导节追加到
$PREFIX/etc/pacman.conf:
[hope2333-meta]
Server = https://hope2333.github.io/repo/Termux/pacman/
SigLevel = Optional TrustAll再安装 mirrorlist 包:
pacman -Sy && pacman -S hope2333-mirrorlist包内自动追加
Include = /etc/pacman.d/hope2333-mirrorlist.conf,此后源变更随包升级生效。
apt 客户端将引导行写入
$PREFIX/etc/apt/sources.list.d/hope2333-bootstrap.list:
deb [trusted=yes arch=aarch64] https://hope2333.github.io/repo/Termux/apt/ ./
再安装 mirrorlist 包:
apt update && apt install hope2333-mirrorlist包内写入 hope2333.list(5 行 flat,指向各仓 Release latest)。
旧
deb .../repo/Termux/apt/ stable main行已失效(io 不再托管 apt 仓),请移除或替换为引导行。已有旧版[hope2333]pacman 块请整体替换为引导节,勿追加(重复注册会报 database already registered)。
已入源项目(pacman)
已入源的项目优先用 pacman 安装,以 codegraph 为例:
pacman -Sy codegraph-Sy
会先刷新软件源再安装,确保拿到最新版本。更多仓库将陆续入源。
未入源项目(GitHub 手动安装)
尚未入源的项目,请前往对应项目的 GitHub 仓库获取,安装方式见仓库 README。各项目的仓库链接见 项目索引。
验证安装
安装完成后,可通过 --version
参数验证,能正常输出版本号即安装成功。