Install Oracle 19c on OEL8.5

wget https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
dnf install oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
[root@linuxbox ~]# dnf install https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
Last metadata expiration check: 0:47:44 ago on Mon 17 Jan 2022 12:53:57 PM CST.
oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm                                                                             53 kB/s |  31 kB     00:00    
Dependencies resolved.
===============================================================================================================================================================
 Package                                        Architecture           Version                                         Repository                         Size
===============================================================================================================================================================
Installing:
 oracle-database-preinstall-19c                 x86_64                 1.0-2.el8                                       @commandline                       31 k
Installing dependencies:
 ksh                                            x86_64                 20120801-254.0.1.el8                            ol8_appstream                     927 k
 libaio-devel                                   x86_64                 0.3.112-1.el8                                   ol8_baseos_latest                  19 k
 libnsl                                         x86_64                 2.28-164.0.1.el8                                ol8_baseos_latest                 104 k
 libstdc++-devel                                x86_64                 8.5.0-4.0.1.el8_5                               ol8_appstream                     2.1 M
 lm_sensors-libs                                x86_64                 3.4.0-23.20180522git70f7e08.el8                 ol8_baseos_latest                  59 k
 sysstat                                        x86_64                 11.7.3-6.0.1.el8                                ol8_appstream                     425 k

Transaction Summary
===============================================================================================================================================================
Install  7 Packages

Total size: 3.6 M
Total download size: 3.6 M
Installed size: 16 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): libaio-devel-0.3.112-1.el8.x86_64.rpm                                                                                    33 kB/s |  19 kB     00:00    
(2/6): lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64.rpm                                                               87 kB/s |  59 kB     00:00    
(3/6): libnsl-2.28-164.0.1.el8.x86_64.rpm                                                                                      138 kB/s | 104 kB     00:00    
(4/6): sysstat-11.7.3-6.0.1.el8.x86_64.rpm                                                                                     1.3 MB/s | 425 kB     00:00    
(5/6): ksh-20120801-254.0.1.el8.x86_64.rpm                                                                                     1.6 MB/s | 927 kB     00:00    
(6/6): libstdc++-devel-8.5.0-4.0.1.el8_5.x86_64.rpm                                                                            3.5 MB/s | 2.1 MB     00:00    
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                          2.8 MB/s | 3.6 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                       1/1 
  Installing       : libstdc++-devel-8.5.0-4.0.1.el8_5.x86_64                                                                                              1/7 
  Installing       : ksh-20120801-254.0.1.el8.x86_64                                                                                                       2/7 
  Running scriptlet: ksh-20120801-254.0.1.el8.x86_64                                                                                                       2/7 
  Installing       : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64                                                                                3/7 
  Running scriptlet: lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64                                                                                3/7 
  Installing       : sysstat-11.7.3-6.0.1.el8.x86_64                                                                                                       4/7 
  Running scriptlet: sysstat-11.7.3-6.0.1.el8.x86_64                                                                                                       4/7 
  Installing       : libnsl-2.28-164.0.1.el8.x86_64                                                                                                        5/7 
  Installing       : libaio-devel-0.3.112-1.el8.x86_64                                                                                                     6/7 
  Running scriptlet: oracle-database-preinstall-19c-1.0-2.el8.x86_64                                                                                       7/7 
  Installing       : oracle-database-preinstall-19c-1.0-2.el8.x86_64                                                                                       7/7 
  Running scriptlet: oracle-database-preinstall-19c-1.0-2.el8.x86_64                                                                                       7/7 
  Verifying        : libaio-devel-0.3.112-1.el8.x86_64                                                                                                     1/7 
  Verifying        : libnsl-2.28-164.0.1.el8.x86_64                                                                                                        2/7 
  Verifying        : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64                                                                                3/7 
  Verifying        : ksh-20120801-254.0.1.el8.x86_64                                                                                                       4/7 
  Verifying        : libstdc++-devel-8.5.0-4.0.1.el8_5.x86_64                                                                                              5/7 
  Verifying        : sysstat-11.7.3-6.0.1.el8.x86_64                                                                                                       6/7 
  Verifying        : oracle-database-preinstall-19c-1.0-2.el8.x86_64                                                                                       7/7 

Installed:
  ksh-20120801-254.0.1.el8.x86_64              libaio-devel-0.3.112-1.el8.x86_64                          libnsl-2.28-164.0.1.el8.x86_64                     
  libstdc++-devel-8.5.0-4.0.1.el8_5.x86_64     lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64     oracle-database-preinstall-19c-1.0-2.el8.x86_64    
  sysstat-11.7.3-6.0.1.el8.x86_64             

Complete!

do not attempt using

oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

because these need another lib

[root@linuxbox ~]# dnf install oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
Last metadata expiration check: 0:21:44 ago on Mon 17 Jan 2022 12:53:57 PM CST.
Error: 
 Problem: conflicting requests
  - nothing provides compat-libcap1 needed by oracle-database-preinstall-18c-1.0-1.el7.x86_64
  - nothing provides compat-libstdc++-33 needed by oracle-database-preinstall-18c-1.0-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@linuxbox ~]# dnf install oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
Last metadata expiration check: 0:12:34 ago on Mon 17 Jan 2022 12:53:57 PM CST.
Error: 
 Problem: conflicting requests
  - nothing provides compat-libcap1 needed by oracle-database-preinstall-19c-1.0-1.el7.x86_64
  - nothing provides compat-libstdc++-33 needed by oracle-database-preinstall-19c-1.0-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)