How do I update a piece of software using RPM?

Issue the following command:-

rpm -Uvh filename.rpm