I know how to use rpm to list the contents of a package (rpm -qpil package.rpm). However, this requires knowing the location of the .rpm file on the filesystem.
currently reopquery is integrated into dnf and yum, so typing:
dnf repoquery -l
will list package contents from a remote repository (even for the packages that are not installed yet)
meaning installing a separate dnf-utils or yum-utils package is no longer required for the functionality as it is now being supported natively.
for listing installed or local (*.rpm files) packages' contents there is rpm -ql
i don't think it is possible with yum org dnf (not repoquery subcommand)
please correct me if i am wrong