Before installing a RPM file , atleast few will be curious to check what exactly that particular rpm files contains.

For this you can use the rpm command with qlp flags

The syntax is as below.
#rpm -qlp vim-minimal-7.0.109-7.el5.x86_64.rpm
warning: vim-minimal-7.0.109-7.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

How Do I List Files For Installed Package?

# rpm -ql packageName
# rpm -ql samba
# rpm -ql httpd