Enviro: Linux 6.4
-------------------------------------
#/etc/yum.repo.d/
If the file does not exist in the above path then you can run simply below command to create this file (public-yum.ol6.repo)
[root@EBS1 ~]# wget http://public-yum.oracle.com/public-yum-ol6.repo
Enviro: Linux 7.5 EBS 12.2
-------------------------------------
[root@EBS1 ~]# pwd
/root
[root@EBS1 ~]# wget http://public-yum.oracle.com/public-yum-ol7.repo
--2019-07-17 14:41:40-- http://public-yum.oracle.com/public-yum-ol7.repo
Resolving public-yum.oracle.com (public-yum.oracle.com)... 23.208.240.101
Connecting to public-yum.oracle.com (public-yum.oracle.com)|23.208.240.101|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16171 (16K) [text/plain]
Saving to: ‘public-yum-ol7.repo’
100%[======================================>] 16,171 --.-K/s in 0.002s
2019-07-17 14:41:40 (8.39 MB/s) - ‘public-yum-ol7.repo’ saved [16171/16171]
[root@EBS1 ~]#
[root@EBS1 yum.repos.d]# yum install oracle-ebs-server-R12-preinstall
Loaded plugins: langpacks, ulninfo
ol7_UEKR4 | 2.5 kB 00:00
ol7_latest | 2.7 kB 00:00
No package oracle-ebs-server-R12-preinstall available.
Error: Nothing to do
[root@EBS1 etc]#
If above created file under /etc u will get a same error...so have to copy in below path.
#/etc/yum.repo.d/public-yum.ol6.repo
You can enable any of the repositories in the public-yum-ol7.repo file by changing [ol7_latest] and [ol7_addons]
enabled=0 to enabled=1.
# vi /etc/yum.repos.d/public-yum-ol7.repo
[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol6_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/0/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/0/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_u1_base]
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/1/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/1/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_u2_base]
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/2/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/2/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_u3_base]
name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/3/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/3/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_u4_base]
name=Oracle Linux $releasever Update 4 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/4/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Oracle Linux $releasever Update 4 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/4/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_u5_base]
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/5/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/5/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_UEKR3_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol6_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEK/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEK/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_playground_latest]
name=Latest mainline stable kernel for Oracle Linux 7 ($basearch) – Unsupported
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/playground/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Latest mainline stable kernel for Oracle Linux 7 ($basearch) – Unsupported
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/playground/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_MySQL]
name=MySQL 5.5 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=MySQL 5.5 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_gdm_multiseat]
name=Oracle Linux 6 GDM Multiseat ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/gdm_multiseat/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Oracle Linux 6 GDM Multiseat ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/gdm_multiseat/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_ofed_UEK]
name=OFED supporting tool packages for Unbreakable Enterprise Kernel on Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/ofed_UEK/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=OFED supporting tool packages for Unbreakable Enterprise Kernel on Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/ofed_UEK/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_MySQL56]
name=MySQL 5.6 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL56/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=MySQL 5.6 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL56/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_spacewalk20_server]
name=Spacewalk Server 2.0 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/spacewalk20/server/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Spacewalk Server 2.0 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/spacewalk20/server/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
[ol6_spacewalk20_client]
name=Spacewalk Client 2.0 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/spacewalk20/client/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
name=Spacewalk Client 2.0 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/spacewalk20/client/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0
save and exit this file: wq!
[root@EBS1 yum.repos.d]# yum install oracle-ebs-server-R12-preinstall
Loaded plugins: langpacks, ulninfo
....
....
---
Resolving Dependencies
--> Running transaction check
---> Package oracle-ebs-server-R12-preinstall.x86_64 0:1.0-4.el7 will be installed
--> Processing Dependency: libXp(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libgcc(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: compat-libstdc++-296(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: ksh for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: redhat-lsb for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libstdc++(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: compat-db47(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: elfutils-libelf-devel for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libaio-devel(x86-64) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libXrender(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libXp(x86-64) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: perl-File-CheckTree for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: glibc-devel(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: glibc(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: xorg-x11-libs-compat for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libXp for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libXi(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libaio(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libaio-devel(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libstdc++-devel(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: gdbm(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: compat-libstdc++-33(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: libXtst(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Processing Dependency: openmotif21(x86-32) for package: oracle-ebs-server-R12-preinstall-1.0-4.el7.x86_64
--> Running transaction check
...
...
...
Installed:
oracle-ebs-server-R12-preinstall.x86_64 0:1.0-4.el7
Dependency Installed:
compat-db47.i686 0:4.7.25-28.el7
compat-libstdc++-296.i686 0:2.96-144.0.2.el7
compat-libstdc++-33.i686 0:3.2.3-72.el7
elfutils-libelf-devel.x86_64 0:0.172-2.el7
gdbm.i686 0:1.10-8.el7
gdbm-devel.x86_64 0:1.10-8.el7
glibc.i686 0:2.17-260.0.17.el7_6.6
glibc-devel.i686 0:2.17-260.0.17.el7_6.6
ksh.x86_64 0:20120801-139.0.1.el7
libICE.i686 0:1.0.9-9.el7
libSM.i686 0:1.2.2-2.el7
libX11.i686 0:1.6.5-2.el7
libXau.i686 0:1.0.8-2.1.el7
libXext.i686 0:1.3.3-3.el7
libXi.i686 0:1.7.9-1.el7
libXp.i686 0:1.0.2-2.1.el7
libXp.x86_64 0:1.0.2-2.1.el7
libXrender.i686 0:0.9.10-1.el7
libXt.i686 0:1.1.5-3.el7
libXtst.i686 0:1.2.3-1.el7
libaio.i686 0:0.3.109-13.el7
libaio-devel.i686 0:0.3.109-13.el7
libaio-devel.x86_64 0:0.3.109-13.el7
libdb-devel.x86_64 0:5.3.21-24.el7
libgcc.i686 0:4.8.5-36.0.1.el7_6.2
libsmartcols.x86_64 0:2.23.2-59.el7_6.1
libstdc++.i686 0:4.8.5-36.0.1.el7_6.2
libstdc++-devel.i686 0:4.8.5-36.0.1.el7_6.2
libuuid.i686 0:2.23.2-59.el7_6.1
libxcb.i686 0:1.13-1.el7
nss-softokn-freebl.i686 0:3.36.0-5.0.1.el7_5
openmotif21.i686 0:2.1.30-11.el7
perl-B-Lint.noarch 0:1.17-3.el7
perl-CGI.noarch 0:3.63-4.el7
perl-CPAN.noarch 0:1.9800-294.el7_6
perl-Class-ISA.noarch 0:0.36-1010.el7
perl-Digest-SHA.x86_64 1:5.85-4.el7
perl-Env.noarch 0:1.04-2.el7
perl-ExtUtils-Install.noarch 0:1.58-294.el7_6
perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7
perl-ExtUtils-Manifest.noarch 0:1.61-244.el7
perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7
perl-FCGI.x86_64 1:0.74-8.el7
perl-File-CheckTree.noarch 0:4.42-3.el7
perl-Locale-Codes.noarch 0:3.26-2.el7
perl-Locale-Maketext.noarch 0:1.23-3.el7
perl-Module-Pluggable.noarch 1:4.8-3.el7
perl-Pod-Checker.noarch 0:1.60-2.el7
perl-Pod-LaTeX.noarch 0:0.61-2.el7
perl-Pod-Parser.noarch 0:1.61-2.el7
perl-Pod-Plainer.noarch 0:1.03-4.el7
perl-Sys-Syslog.x86_64 0:0.33-3.el7
perl-Test-Simple.noarch 0:0.98-243.el7
perl-Text-Soundex.x86_64 0:3.04-4.el7
perl-Text-Unidecode.noarch 0:0.04-20.el7
perl-XML-LibXML.x86_64 1:2.0018-5.el7
perl-autodie.noarch 0:2.16-2.el7
perl-devel.x86_64 4:5.16.3-294.el7_6
perl-local-lib.noarch 0:1.008010-4.el7
redhat-lsb.x86_64 0:4.1-27.0.1.el7
redhat-lsb-core.x86_64 0:4.1-27.0.1.el7
redhat-lsb-cxx.x86_64 0:4.1-27.0.1.el7
redhat-lsb-desktop.x86_64 0:4.1-27.0.1.el7
redhat-lsb-languages.x86_64 0:4.1-27.0.1.el7
redhat-lsb-printing.x86_64 0:4.1-27.0.1.el7
redhat-lsb-submod-multimedia.x86_64 0:4.1-27.0.1.el7
redhat-lsb-submod-security.x86_64 0:4.1-27.0.1.el7
spax.x86_64 0:1.5.2-13.el7
systemtap-sdt-devel.x86_64 0:3.3-3.el7
xorg-x11-libs-compat.i386 0:6.8.2-1.EL.33.0.1
zlib-devel.x86_64 0:1.2.7-18.el7
Dependency Updated:
cpp.x86_64 0:4.8.5-36.0.1.el7_6.2 elfutils.x86_64 0:0.172-2.el7
elfutils-libelf.x86_64 0:0.172-2.el7 elfutils-libs.x86_64 0:0.172-2.el7
gcc.x86_64 0:4.8.5-36.0.1.el7_6.2 gcc-c++.x86_64 0:4.8.5-36.0.1.el7_6.2
gcc-gfortran.x86_64 0:4.8.5-36.0.1.el7_6.2 glibc.x86_64 0:2.17-260.0.17.el7_6.6
glibc-common.x86_64 0:2.17-260.0.17.el7_6.6 glibc-devel.x86_64 0:2.17-260.0.17.el7_6.6
glibc-headers.x86_64 0:2.17-260.0.17.el7_6.6 libX11.x86_64 0:1.6.5-2.el7
libX11-common.noarch 0:1.6.5-2.el7 libX11-devel.x86_64 0:1.6.5-2.el7
libblkid.x86_64 0:2.23.2-59.el7_6.1 libgcc.x86_64 0:4.8.5-36.0.1.el7_6.2
libgfortran.x86_64 0:4.8.5-36.0.1.el7_6.2 libgomp.x86_64 0:4.8.5-36.0.1.el7_6.2
libmount.x86_64 0:2.23.2-59.el7_6.1 libquadmath.x86_64 0:4.8.5-36.0.1.el7_6.2
libquadmath-devel.x86_64 0:4.8.5-36.0.1.el7_6.2 libstdc++.x86_64 0:4.8.5-36.0.1.el7_6.2
libstdc++-devel.x86_64 0:4.8.5-36.0.1.el7_6.2 libuuid.x86_64 0:2.23.2-59.el7_6.1
libxcb.x86_64 0:1.13-1.el7 libxcb-devel.x86_64 0:1.13-1.el7
nspr.x86_64 0:4.19.0-1.el7_5 nss-softokn-freebl.x86_64 0:3.36.0-5.0.1.el7_5
nss-util.x86_64 0:3.36.0-1.1.el7_6 util-linux.x86_64 0:2.23.2-59.el7_6.1
zlib.x86_64 0:1.2.7-18.el7
Complete!
[root@EBS1 yum.repos.d]#