rpm -qip <yourpackage.rpm>
yum info <yourpackage>
rpm -qlp <yourpackage.rpm>
repoquery -l <yourpackage>
the ladder needs yum-utils
installed
rpm -qf </path/to/your/file>
yum whatprovides </path/to/your/file>
repoquery --whatprovides </path/to/your/file>
Fun fact on yum whatprovides
and repoquery --whatprovides
: it works on any files within any package,
not only the ones you have installed and on top of that it supports wildcards.
So you can show all packages with a bundled java binary by typing:
yum whatprovides */java
or repoquery --whatprovides */java
.
yum --showduplicates list <yourpackage>
rpm -q --whatrequires <yourpackage>
repoquery -q --whatrequires <yourpackage>