Gitlab 本地搭建

着手搭建gitlab

 

1.更新本地yum缓存

sudo yum makecache

2. 添加 GitLab 镜像源并安装

curl -sS http://packages.gitlab.com.cn/install/gitlab-ce/script.rpm.sh | sudo bash
[root@mail etc]# curl -sS http://packages.gitlab.com.cn/install/gitlab-ce/script.rpm.sh | sudo bash
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Downloading repository file: http://packages.gitlab.cc/install/gitlab-ce/config_file_centos_7.list
done.
Installing pygpgme to verify GPG signatures...
已加载插件:fastestmirror
Repository gitlab-ce is listed more than once in the configuration


Error getting repository data for gitlab_gitlab-ce, repository not found
Installing yum-utils...
已加载插件:fastestmirror
Repository gitlab-ce is listed more than once in the configuration


Error getting repository data for gitlab_gitlab-ce, repository not found

WARNING: 
The yum-utils package could not be installed. This means you may not be able to install source RPMs or use other yum features.

Generating yum cache for gitlab_gitlab-ce...
Repository gitlab-ce is listed more than once in the configuration


Error getting repository data for gitlab_gitlab-ce, repository not found

The repository is setup! You can now install packages.
sudo yum install gitlab-ce
[root@mail etc]# sudo yum install gitlab-ce
已加载插件:fastestmirror
Repository gitlab-ce is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.cn99.com
 * updates: mirrors.163.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 gitlab-ce.x86_64.0.11.4.4-ce.0.el6 将被 安装
--> 正在处理依赖关系 policycoreutils-python,它被软件包 gitlab-ce-11.4.4-ce.0.el6.x86_64 需要
--> 正在检查事务
---> 软件包 policycoreutils-python.x86_64.0.2.5-22.el7 将被 安装
--> 正在处理依赖关系 policycoreutils = 2.5-22.el7,它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 setools-libs >= 3.3.8-2,它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 libsemanage-python >= 2.5-9,它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 audit-libs-python >= 2.1.3-4,它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 python-IPy,它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1(VERS_1.4)(64bit),它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1(VERS_1.2)(64bit),它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 libcgroup,它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 libapol.so.4(VERS_4.0)(64bit),它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 checkpolicy,它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 libqpol.so.1()(64bit),它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在处理依赖关系 libapol.so.4()(64bit),它被软件包 policycoreutils-python-2.5-22.el7.x86_64 需要
--> 正在检查事务
---> 软件包 audit-libs-python.x86_64.0.2.8.1-3.el7_5.1 将被 安装
--> 正在处理依赖关系 audit-libs(x86-64) = 2.8.1-3.el7_5.1,它被软件包 audit-libs-python-2.8.1-3.el7_5.1.x86_64 需要
---> 软件包 checkpolicy.x86_64.0.2.5-6.el7 将被 安装
---> 软件包 libcgroup.x86_64.0.0.41-15.el7 将被 安装
---> 软件包 libsemanage-python.x86_64.0.2.5-11.el7 将被 安装
--> 正在处理依赖关系 libsemanage = 2.5-11.el7,它被软件包 libsemanage-python-2.5-11.el7.x86_64 需要
---> 软件包 policycoreutils.x86_64.0.2.5-17.1.el7 将被 升级
---> 软件包 policycoreutils.x86_64.0.2.5-22.el7 将被 更新
---> 软件包 python-IPy.noarch.0.0.75-6.el7 将被 安装
---> 软件包 setools-libs.x86_64.0.3.3.8-2.el7 将被 安装
--> 正在检查事务
---> 软件包 audit-libs.x86_64.0.2.7.6-3.el7 将被 升级
--> 正在处理依赖关系 audit-libs(x86-64) = 2.7.6-3.el7,它被软件包 audit-2.7.6-3.el7.x86_64 需要
---> 软件包 audit-libs.x86_64.0.2.8.1-3.el7_5.1 将被 更新
---> 软件包 libsemanage.x86_64.0.2.5-8.el7 将被 升级
---> 软件包 libsemanage.x86_64.0.2.5-11.el7 将被 更新
--> 正在检查事务
---> 软件包 audit.x86_64.0.2.7.6-3.el7 将被 升级
---> 软件包 audit.x86_64.0.2.8.1-3.el7_5.1 将被 更新
--> 解决依赖关系完成

依赖关系解决

====================================================================================================================================
 Package                                 架构                    版本                              源                          大小
======================================================================================
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值