The rpm command's "--aid" option will search for other pre-requisite RPMs in your directory and install them at the same time.
The only problem is that you have to have the entire set of RPMs in the directory for this to work. If my machine doesn't have access to yum and the internet, I just copy all the RPMs from my Linux CDs onto my hard drive to make this easier.Code:rpm -i --aid
I think there is a way to find out what your depenency RPMs are beforehand. Like this:
Code:rpm -qpR file-name.rpm rpm -qpR installed-package-name