Knowledge Base - RPM Commands

To check a known installed RPM package

$ sudo rpm -q GeoIP
GeoIP-1.5.0-11.el7.x86_64

To check if a particular RPM package is installed

$ sudo rpm -qa | grep GeoIP
GeoIP-1.5.0-11.el7.x86_64

To install RPM package

$ sudo rpm -ivh GeoIP-1.5.0-11.el7.x86_64.rpm
NULL

To List all files for particular installed RPM package

$ sudo rpm -ql GeoIP
NULL