
The other day while writing up the blog post How to install Oracle Database 18c XE on Oracle Linux 8 I stumbled across the question of how to list all the dependencies of a rpm package on Oracle Linux 8. The solution was easier than I thought but required some googling, so here is it for easy reference:
The dnf
command provides a nice little sub command called repoquery
which is equivalent to rpm -q
and to the repoquery
command provided by yum-utils
on Linux 7. It’s quite a powerful little command which is reflected by the long list of parameters it takes. You can check for yourself by just typing dnf repoquery --help
. One of these parameters is --requires
which allows you to, as the documentation puts it “Display capabilities that the package depends on.“