The database maintained by rpm contains quite a lot of information. We've
already seen that it keeps track of what versions of packages are installed,
and their associated information. It can also list the files owned by a given
installed package using rpm -ql:
# rpm -ql xsnow
/etc/X11/applnk/Games/xsnow.desktop
/usr/X11R6/bin/xsnow
/usr/X11R6/man/man1/xsnow.1x.gz
Combined with the -c option or the -d option, you can restrict the output
to configuration or documentation files, respectively. This type of query is
more useful for larger rpms with long file lists, but we can still demonstrate
using the Xsnow rpm:
# rpm -qlc xsnow
/etc/X11/applnk/Games/xsnow.desktop
# rpm -qld xsnow
/usr/X11R6/man/man1/xsnow.1x.gz