美文网首页SpringBoot程序员
nexus-oss 私服集成yum

nexus-oss 私服集成yum

作者: 若书R | 来源:发表于2019-04-26 20:42 被阅读1次

nexus 集成了 yum 私服使用起来还是比较简单的

配置 yum proxy

实际使用我们可能需要配置centos 以及epel 的源

centos可以用http://mirrors.ustc.edu.cn/centos/

epel 用http://mirrors.ustc.edu.cn/epel/

配置yum repo

nexus.repo /etc/yum.repos.d/
参考

[nexusrepo]
name=Nexus Repository
baseurl=http://hostip:8081/repository/yum-proxy/$releasever/os/$basearch/
enabled=1
gpgcheck=0
priority=1

nexus-epel.repo /etc/yum.repos.d/
参考

[nexus-epel-debuginfo]
name = Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl = http://hostip:8081/repository/aliyun-epel/7/$basearch/debug
failovermethod = priority
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck = 0
[nexus-epel-source]
name = Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl = http://hostip:8081/repository/aliyun-epel/7/SRPMS
failovermethod = priority
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck = 0
[nexus-epel]
baseurl = http://hostip:8081/repository/aliyun-epel/7/$basearch
failovermethod = priority
gpgcheck = 0
name = EPEL YUM repo

测试效果

yum install -y php

相关文章

  • nexus-oss 私服集成yum

    nexus 集成了 yum 私服使用起来还是比较简单的 配置 yum proxy 实际使用我们可能需要配置cent...

  • 第(03)开发工具总结

    1 git私服 gitlab,gogs 2 maven私服 nexus 3. 持续集成 Jenkins 4. ap...

  • nexus3搭建golang私服

    在之前的文章中提到使用Athens搭建golang私服,但Athens私服无管理界面,而nexus3集成了go,m...

  • DevOps之Jenkins集成Kubernetes

    1、 Jenkins集成Kubernetes 1.1、 准备部署的yml文件 1.2、 Harbor私服配置 在尝...

  • Gitlab+Jenkins+Nexus 环境搭建

    Gitlab代码仓库、Jenkins持续集成、Nexus仓库私服,可以搭配构建一个较完整的开发环境。根据需求,在C...

  • 快速搭建web服务器apache+nginx+mysql+mar

    推荐集成搭建: yum源分别安装 点开链接进入详情 安装EPEL仓库-安装php获取比较新的yum源。 使用ngi...

  • Jenkins+kubernetes(第1节)

    Jenkins 特性 开源java语言开发持续集成,持续部署工具 易于安装:yum/docker/war 消息通知...

  • Nexus私服

    容器运行 默认账号admin admin123 配置PyPi私服 配置npm私服 配置 maven私服

  • Docker 私服搭建使用实战

    官方指引 1. 搭建私服 演示图如下: 搭建后,即可通过浏览器访问私服,默认为空: 2. 上传镜像到私服 将私服连...

  • Maven私服搭建

    什么是maven私服? 工程中如何使用? 如何接入maven私服? 了解maven私服 分为本地和远程 远程包括:...

网友评论

    本文标题:nexus-oss 私服集成yum

    本文链接:https://www.haomeiwen.com/subject/kifcnqtx.html