mirror-web/help/_posts/1970-01-01-gitlab-ce.md
ZhiShengYuan 2086eaf5a4
Update 1970-01-01-gitlab-ce.md
Add ubuntu 20.24 and Debian 11, delete ubuntu 14.04(already deleted from https://mirrors.bfsu.edu.cn/gitlab-ce/ubuntu/)
2022-03-04 19:25:41 +08:00

1.8 KiB

category layout mirrorid
help help gitlab-ce

Gitlab Community Edition 镜像使用帮助

注意: gitlab-ce 镜像仅支持 x86-64 架构

Debian/Ubuntu 用户

首先信任 GitLab 的 GPG 公钥:

curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null

再选择你的 Debian/Ubuntu 版本,文本框中内容写进 /etc/apt/sources.list.d/gitlab-ce.list

Debian 8 (Jessie) Debian 9 (Stretch) Debian 10 (Buster) Debian 11 (Bullseye) Ubuntu 16.04 LTS Ubuntu 18.04 LTS Ubuntu 20.04 LTS



安装 gitlab-ce:

sudo apt-get update
sudo apt-get install gitlab-ce

{% raw %}

{%endraw%}

RHEL/CentOS 用户

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

[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://{{ site.hostname }}/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1

再执行

sudo yum makecache
sudo yum install gitlab-ce