应该使用哪种第三方回购协议在docker的Redhat 7中安装git?
如果我不是redhat用户,应该使用什么第三方回购在redhat中安装软件包 我正在使用redhat docker image registry.access.redhat.com/rhel7/rhel。此映像不包含任何软件包安装 我已经尝试了网络中的所有选项,可能是它们没有更新应该使用哪种第三方回购协议在docker的Redhat 7中安装git?,git,docker,redhat,centos7,Git,Docker,Redhat,Centos7,如果我不是redhat用户,应该使用什么第三方回购在redhat中安装软件包 我正在使用redhat docker image 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 sa
My redhat version is 7.3
64 bit
and I am not subscribe to redhat .
So when ever i install any package it say
“此系统未注册到Red Hat Subscription Management。您
可以使用订阅管理器进行注册。“
并希望将git从第三方存储库安装到redhat。
如何做到这一点 参见url
我正在添加信息,因为将来url可能不存在。
我们可以这样做。一个正在运行的示例。
我已经为redhat使用了第三方回购协议,即EPEL、rpmforge。他们也有很好的包装。
但要做到这一点,您可以使用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
并从中添加内容
然后看
百胜repolist all
它将列出所有回购,启用centos-我们将激活base
现在运行yum安装-y git。
git已安装。…为什么需要第三方回购?因为redhat要求订阅,而我只需要安装git的软件包。如果我安装git,请说明错误,我有问题的更新。请阅读:我已阅读此内容,但此内容无效。
wgethttps://www.kernel.org/pub/software/scm/git/git-2.10.3.tar.gz
,安装