GitLab CE 软件仓库

收录范围

gitlab-ce 镜像仅支持 x86-64 架构。

Debian/Ubuntu 用户

首先信任 GitLab 的 GPG 公钥:

curl -fsSL https://packages.gitlab.com/gpg.key | gpg --dearmor -o /usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg

再选择你的 Debian/Ubuntu 版本,将下方内容写入 /etc/apt/sources.list.d/gitlab-ce.list

deb [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] https://mirrors.ha.edu.cn/gitlab-ce/debian/trixie trixie main

安装 gitlab-ce:

apt-get update
apt-get install gitlab-ce

RHEL/CentOS 用户

新建 /etc/yum.repos.d/gitlab-ce.repo,内容为

[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.ha.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1

再执行

yum makecache
yum install gitlab-ce