在 docker 的 Redhat 7 中应该使用什么第三方存储库来安装 git?
what third party repo should be use to install git in Redhat 7 in docker?
如果我没有订阅 redhat 用户,应该使用什么第三方 repo 在 redhat 中安装软件包。
我正在使用 redhat docker 图片 registry.access.redhat.com/rhel7/rhel 。此图像不包含任何软件包安装。
我已经尝试了网络中的所有选项,可能是它们没有更新。
My redhat version is 7.3
64 bit
and I am not subscribe to redhat .
So when ever i install any package it say
"This system is not registered to Red Hat Subscription Management. You
can use subscription-manager to register."
并且想从第三方存储库安装 git 到 redhat。
怎么能这样做呢?
参见 url http://redhat-centos.blogspot.in/2013/06/configuring-centos-base-repo-for-redhat.html
我正在添加信息,因为将来 url 可能不存在。
我们可以通过 .一个 运行ning 示例。
我已经使用了 EPEL 和 rpmforge 的 redhat 的第三方 repo。他们也有很好的包装。
但是这样做你可以使用centos repo指令来解决这个问题。
转到/etc/yum.repo.d,制作一个文件
CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos6
在这个 /etc/pki/rpm-gpg
里面
添加创建文件 RPM-GPG-KEY-CentOS-7
并添加来自
的内容
http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
然后看看
yum 重塑所有
它会列出所有的 repo,启用 centos - base 我们会激活
现在 运行 百胜安装 -y git。
git 正在安装。
如果我没有订阅 redhat 用户,应该使用什么第三方 repo 在 redhat 中安装软件包。
我正在使用 redhat docker 图片 registry.access.redhat.com/rhel7/rhel 。此图像不包含任何软件包安装。
我已经尝试了网络中的所有选项,可能是它们没有更新。
My redhat version is 7.3
64 bit
and I am not subscribe to redhat .
So when ever i install any package it say
"This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."
并且想从第三方存储库安装 git 到 redhat。 怎么能这样做呢?
参见 url http://redhat-centos.blogspot.in/2013/06/configuring-centos-base-repo-for-redhat.html 我正在添加信息,因为将来 url 可能不存在。 我们可以通过 .一个 运行ning 示例。 我已经使用了 EPEL 和 rpmforge 的 redhat 的第三方 repo。他们也有很好的包装。 但是这样做你可以使用centos repo指令来解决这个问题。
转到/etc/yum.repo.d,制作一个文件
CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos6
在这个 /etc/pki/rpm-gpg
里面添加创建文件 RPM-GPG-KEY-CentOS-7 并添加来自
的内容http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
然后看看 yum 重塑所有 它会列出所有的 repo,启用 centos - base 我们会激活
现在 运行 百胜安装 -y git。 git 正在安装。