how to find out which rpm a file belongs to

the command is: rpm -qf file

for example, to figure out which rpm installed /usr/include/security/pam_modules.h do:

rpm -qf file /usr/include/security/pam_modules.h