I want to install openfire on my linux server by SSHusing mac terminal but I am facing problem?

I have tried to use this command for installing but it did not work.I have tried it using sudo too it’s not working. Any suggestion please reply me?

rpm -ivh openfire-3.8.2-1.i386.rpm

You need to download the RPM and install it.

wget -O openfire-3.9.3-1.i386.rpm http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openf ire-3.9.3-1.i386.rpm

yum install openfire-3.9.3-1.i386.rpm -y

Can you please tell me how to install rpm?

i am using mac 10.9.5 . can you tell me how to install rpm so that I can install the downloaded .rpm file on linux server?