1 person found this helpful
I think the following will answer your questions:
[root@localhost ~]# ls -l /usr/bin/yum
lrwxrwxrwx. 1 root root 5 Dec 2 2019 /usr/bin/yum -> dnf-3
So when you type yum in OL8, it's a symbolic link to dnf-3. You can still use the yum syntax.
As Dude! says, in Oracle Linux 8, yum is a symlink to dnf, so you're always running dnf.
To answer your actual question, we provide a preinstall RPM for Oracle Linux (both 7 and 8) to make configuration easier. To prepare your server for Oracle Database 19c, just run:
# dnf -y install oracle-database-preinstall-19c
This will not only install all the required RPMs, but it also configures things like security limits and sysctl values.
Even better, if you download the Oracle Database 19c RPM, you can just run "yum install oracle-database-ee-19c" and it will pull in the preinstall RPM automatically and install the Database for you too.
Thanks Avi. I have been using oracle-database-preinstall-19c already. I studied what is inside this rpm but did not find any yum install OS packages. It did set the kernel parameters.
Please advise where inside this rpm the installation of OS packages eg. yum install binutils.
Thanks Dude for prompt reply!
I studied what is inside this rpm but did not find any yum install OS packages. It did set the kernel parameters.
It does this via dependencies, i.e. the oracle-database-preinstall-19c depends on all the RPMs that Database requires, so they're automatically installed by dnf when the preinstall RPM is flagged. You can see this by running "dnf install oracle-database-preinstall-19c" and see all the RPMs it automatically includes in the transaction.
1. Do you mean if use yum install oracle-database-preinstall-19c, it will NOT installed the dependent OS packages, whereas dnf will ?
2. Where is the preinstall RPM "flag" for dependencies found?
3. Can you provide some doc as to how to flag the RPM for installing dependencies?
Thanks again. Much appreciated!
1. Yum and DNF on Oracle Linux 8 are exactly the same thing. You can replace "dnf" with "yum" and vice-versa.
2. In the specification file that's used to build the RPM. If you download the source RPM and review the .spec file, you'll see the dependency.
3. The docs referenced above are complete. The dependencies are always installed automatically by both yum and dnf. That's the primary reason why we provide this RPM.
sorry. I did not find the .spec file. I download from
I extract the rpm to cpio and extract from there. 3 folders /etc, /usr, /var and no .spec files inside those folders. How did you open the rpm? Please advise.
sorry Avi, please disregard my question, I found the .spec file.
Thanks a lot !!!
No problem. For other folks who may be wondering about this, the .spec file is included in the source RPM: https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackageSource/oracle-database-preinstall-19c-1.0-2.el7.src.rpm