Oracle LinuxでパブリックYUMリポジトリを購読する方法

Oracle LinuxでパブリックYUMリポジトリを購読する方法

Virtual Boxゲスト追加パッケージをインストールできるように、次のOracle yumリポジトリを購読したいと思います。

https://yum.oracle.com/repo/OracleLinux/OL7/developer/x86_64/index.html

Oracle Linuxサブスクリプションリストに追加できる.repoファイルのURLはどこにありますか?

編集:Oracleパブリックyumリポジトリを購読しました。

[root@localhost yum.repos.d]# yum repolist
Loaded plugins: langpacks, ulninfo
repo id               repo name                 status
ol6_UEK_latest/x86_64 Latest Unbreakable Enterprise Kernel for Oracle Lin   820
ol6_latest/x86_64     Oracle Linux 7Server Latest (x86_64)                 11,323
ol7_UEKR5/x86_64      Latest Unbreakable Enterprise Kernel Release 5 for     108
ol7_latest/x86_64     Oracle Linux 7Server Latest (x86_64)                11,688
repolist: 23,939


[root@localhost yum.repos.d]# yum search vbox
Loaded plugins: langpacks, ulninfo
============================== N/S matched: vbox ===============================
isdn4k-utils-vboxgetty.x86_64 : ISDN voice box (getty)

Name and summary matches only, use "search all" for everything.

ベストアンサー1

同じWebサーバー上ページこれはプロセスを非常によく説明します。

Oracle Linux Yumサーバーを使用してCentOS、Red Hat Enterprise Linux、またはScientific Linuxを構成するには、次の手順を実行します.

システムをOracle Linuxに変換するには、CentOSから移行する方法のガイドラインを参照してください。 Oracle Linux Yumサーバーから個々のパッケージをインストールするには、まず次の手順に従ってOracle Linux GPGキーをインポートします。次に、rootとして次のコマンドを実行して適切なyum設定ファイルをダウンロードしてコピーします。

Oracle Linux 7

# cd /etc/yum.repos.d
# wget https://yum.oracle.com/public-yum-ol7.repo
Oracle Linux 7 for ARM (aarch64)

# cd /etc/yum.repos.d
# wget https://yum.oracle.com/aarch64/public-yum-ol7.repo
Oracle Linux 6

# cd /etc/yum.repos.d
# wget https://yum.oracle.com/public-yum-ol6.repo
Oracle Linux 5

# cd /etc/yum.repos.d
# wget https://yum.oracle.com/public-yum-el5.repo
Oracle Linux 4, Update 6 or Newer
# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget https://yum.oracle.com/public-yum-el4.repo

デフォルトでは、最新のリポジトリが有効になっています。デフォルト値を変更するには、yum構成ファイルを編集して代替リポジトリを有効にできます。テキストエディタでyum設定ファイルを開きます。有効にするリポジトリのファイルセクションを見つけます(たとえば、Activation = 0をActivation = 1に変更します)。

おすすめ記事