How to list the content of a pakage?

To list the content of an uninstalled rpm:

rpm -qlp package.rpm

To list the content of an installed rpm:

rpm -ql <package name>