How do I install a piece of software using RPM?

Issue the following command:-

rpm -ivh filename.rpm