Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

对 `Omarchy`(基于 Arch Linux 的发行版)的支持

未关闭
#387 8 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

@yayoinoyume 已经在做这个了。

开始于 2026年9月5日。

评估

这个 Issue 还没有评估数据。

描述

Linux os_dish
描述新的换源菜品

Omarchy 是基于 Arch Linux 的发行版(操作系统类)。其软件源由两部分组成:

  1. Arch Linux 官方源:经 /etc/pacman.d/mirrorlist 配置,为 core/extra/multilib 提供标准 archlinux 仓库镜像;
  2. Omarchy Package Repository (OPR):Omarchy 官方专属软件包仓库,配置在 /etc/pacman.conf 的 [omarchy] 段(如 Server = https://pkgs.omarchy.org/stable/$arch,通道分 stable/edge)。

目前 chsrc 无 Omarchy 支持,用户只能手动改配置文件。本请求新增两个 dish:

  1. omarchy:换 Arch 镜像源。复用 os_arch 的源列表(chef_use_other_dish_sources),不重复维护一份;写入时保留官方 stable 镜像作兜底行、幂等清理 mirrorlist 中累积的 Server 行。
  2. omarchyopr:换 [omarchy] 段的 OPR 仓库源。

重要注意:Omarchy 官方仅发布 x86_64 仓库,非 x86_64 架构下会报错退出。

请尽可能提供可参考的换源方法
  1. Arch 镜像源换源:Omarchy 的 mirrorlist 是直接复用标准 Arch 镜像,与 Chsrc 现有 arch dish 的换源方法完全一致,参考方法见 Chsrc的README.md / 清华 TUNA / 中科大 USTC 等官方帮助页,也感谢先前为Chsrc提供Arch镜像的前辈们。
  2. OPR 换源:
    • 官方 [omarchy] 段 Server = https://pkgs.omarchy.org/stable/$arch。
    • 自建镜像 omarchycn 为 https://git.zacharyzhang.com/api/packages/ZacharyZhang-NY/arch/omarchy/x86_64(Gitea 自托管仓库、重新签名,需导入其 registry key)。

重要注意:Omarchy 的更新脚本 omarchy-refresh-pacman 会用默认文件整体覆盖 pacman.conf / mirrorlist,换源后如被还原需重新执行。

请尽可能提供已有镜像站

omarchy dish(同 Arch 镜像源):

  • 上游:https://stable-mirror.omarchy.org(官方 stable)
  • 清华 TUNA:https://mirrors.tuna.tsinghua.edu.cn/archlinux
  • 中科大 USTC:https://mirrors.ustc.edu.cn/archlinux
  • 阿里云:https://mirrors.aliyun.com/archlinux
  • 腾讯云:https://mirrors.tencent.com/archlinux
  • 上海交大 SJTUG:https://mirror.sjtu.edu.cn/archlinux
  • 北外 BFSU:https://mirrors.bfsu.edu.cn/archlinux
  • 华为云:https://mirrors.huaweicloud.com/archlinux
  • Arch 官方全球 Geo:https://geo.mirror.pkgbuild.com

omarchyopr dish(OPR 仓库):

  • 上游:https://pkgs.omarchy.org/stable/$arch(官方 OPR)
  • 自建中国镜像 omarchycn:https://git.zacharyzhang.com/api/packages/ZacharyZhang-NY/arch/omarchy/x86_64(key 为 Omarchy 官方 Arch Registry key,可通过 https://git.zacharyzhang.com/api/packages/ZacharyZhang-NY/arch/repository.key 拉取)

重要注意:我询问了中国镜像站的作者,对方表示近期可能会与omarchy官方进行合并,届时我会根据具体情况再来维护更新。

目前已在安装了omarchy官方镜像和omarchycn镜像的机器上测试。

@ccmywish 恳请 review,对应 PR #388 我将按照要求提交至 dev 分支,如果我做的不够好,我会继续努力,争取为 Chsrc 做出自己的贡献,因为这个工具陪伴了我很久,我也很喜欢它。

主要语言
C
星标
6.9k
派生
285
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

RubyMetric/chsrc 的其他 Issue

查看 RubyMetric/chsrc 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。