Computer Tips - How can I automatically install the dependencies for a .rpm file?

Date: 2010mar3 OS: Linux Q. How can I automatically install the dependencies for a .rpm file? A. You can do:
dnf install <your-file>.rpm
Which is really cool.