Manually connecting to the Oracle Linux Yum Server
- Download and Install Oracle Linux
Note: The Oracle Linux Yum Server is already configured on Oracle Linux 5 Update 7 and Oracle Linux 6 Update 3 and higher. No further configuration is necessary.Note: Linux for Sparc 1.0 ISOs are available at: Oracle Open Source - Download and copy the appropriate yum configuration file in place, by running the following commands as root:
Oracle Linux 10 epel 源
- 第三方epel 源
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
Oracle Linux 9 epel 源
- 第三方epel 源
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Oracle Linux 8 epel 源
- 第三方epel 源
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Oracle Linux 7 epel 源
- 第三方epel 源
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Oracle Linux 10
# 创建 OL10 BaseOS 源配置文件
cat >>/etc/yum.repos.d/ol9-temp.repo<< EOF
[ol10_baseos_latest]
name=Oracle Linux 10 BaseOS Latest (\$basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL10/baseos/latest/\$basearch/
gpgkey=https://yum.oracle.com/RPM-GPG-KEY-oracle-ol10
gpgcheck=1
enabled=1
fastestmirror=1
sslverify=1
ssl_ca_path=/etc/pki/tls/certs
EOF
dnf install oraclelinux-release-el10
Oracle Linux 9
cat >>/etc/yum.repos.d/ol9-temp.repo<< EOF
[ol9_baseos_latest]
name=Oracle Linux 9 BaseOS Latest ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
EOF
dnf install oraclelinux-release-el9
Oracle Linux 8
cat >>/etc/yum.repos.d/ol8-temp.repo<< EOF
[ol8_baseos_latest]
name=Oracle Linux 8 BaseOS Latest ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
EOF
dnf install oraclelinux-release-el8
Oracle Linux 7
wget -N -P /etc/yum.repos.d http://yum.oracle.com/public-yum-ol7.repo
Oracle Linux 6
wget -N -P /etc/yum.repos.d http://yum.oracle.com/public-yum-ol6.repo
Oracle Linux 5
wget -N -P /etc/yum.repos.d http://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 -N -P /etc/yum.repos.d http://yum.oracle.com/public-yum-el4.repo
Oracle OpenStack for Oracle Linux 2.0
wget -N -P /etc/yum.repos.d http://yum.oracle.com/public-yum-ol7.repo
yum install yum-plugin-priorities
Oracle OpenStack for Oracle Linux 1.0
wget -N -P /etc/yum.repos.d http://yum.oracle.com/public-yum-openstack-ol6.repo
Oracle VM 2
wget -N -P /etc/yum.repos.d http://yum.oracle.com/public-yum-ovm2.repo
Linux for SPARC 1.0
wget -N -P /etc/yum.repos.d wget http://yum.oracle.com/yum-linux-sparc64.repo
By default, the latest repository is enabled. If you want to change the default, you can enable an alternative repository by editing the yum configuration file.
- Open the yum configuration file in a text editor
- Locate the section in the file for the repository want to enable, e.g.
[el4_u6_base] - Change
enabled=0toenabled=1
Begin using yum, for example:
# yum list
# yum install firefox
You may be prompted to confirm the import of the Oracle OSS Group GPG key.
本文指导如何手动连接到已配置的Oracle Linux Yum服务器,包括下载安装所需软件包和配置文件步骤。

3335

被折叠的 条评论
为什么被折叠?



