HowTo : Download and Install RPM File with One Command

We usually perform several steps to install RPM package :

  • Go to a temporary directory;
  • Download the RPM file;
  • Install package;
  • Remove downloaded RPM file.

All these steps can be skipped with a one command :

# rpm -ivh http://link_to_packaged.rpm

For example lets install cacti from the RPM package with this command.

# rpm -ivh

Use this trick, and save your time!

BE ALERT : This method should be used only if you trust a remote Server and RPM file.