Anolis 7.9 中安装 GitLab-jh
安装
添加 gitlab-jh 仓库
shellREPO_URL="https://packages.gitlab.cn" gpgcheck=0 releasever=7 sudo cat << EOF | sudo tee /etc/yum.repos.d/gitlab-jh.repo [gitlab-jh] name=JiHu GitLab baseurl=$REPO_URL/repository/el/$releasever/ gpgcheck=$gpgcheck gpgkey=$REPO_URL/repository/raw/gpg/public.gpg.key priority=1 enabled=1 EOF cat /etc/yum.repos.d/gitlab-jh.repo
更新本地软件包缓存
shellyum makecache # 清空后执行 # yum clean all && yum makecache
安装 GitLab-jh
shellsudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-jh
其他命令与安装 gitlab 相同