私がredhatユーザーを購読していない場合、どのサードパーティーレポが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
「このシステムはRed Hat Subscription Managementに登録されていません。あなたは 登録にはsubscription-managerを使用できます。」
そして、redhatにサードパーティーのリポジトリからgitをインストールしたいです。 どうすればそれができますか?
回答:
回答№1は0URLを参照 http://redhat-centos.blogspot.in/2013/06/configuring-centos-base-repo-for-redhat.html 将来URLが変わる可能性があるため、私は情報を追加しています存在しません。 我々はこれをすることができます。実行中の例です。 私はEPEL、rpmforgeであるredhatのためにmayサードパーティレポを使用しました。彼らはまた良いパッケージを持っています。 しかし、そうするために、あなたはこの問題を解決するためにcentosレポ指示を使うことができます。
/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 install -y gitを実行してください。 gitはインストールです。