Using yum localinstall packagename
From FedoraNEWS.ORG
Written by Luya Tshimbalanga on 2005-08-28
Description
Yum (http://linux.duke.edu/projects/yum/) now provides the ability to install individual package from the system through the command "yum localinstall /path/packagename". It is the equivalent of "rpm -ivh /path/packagename". Unlike the latter, it will attempt to solve dependency. Because it is only used to install package downloaded in the system, it cannot use url.
Example
- User1 and User2 download a package called Yafray-0.0.8-2exr.i386.rpm. Yafray (http://www.yafray.org) is a rendered engine for Blender (http://www.blender.org). This version uses OpenEXR (http://www.openexr.com/) technology which was applied on movie like Harry Potter and Sorcerer Stone. OpenEXR is available on Extras repository (http://fedoraproject.org/wiki/Extras).
- User1 chooses the traditional way to install Yafray by doing:
# rpm -ivh /path/yafray-0.0.8-2exr.i386.rpm
Unfortunately, rpm tells that OpenEXR package is missing. User1 has to search online and finally found that package. User1 installs it then Yafray.
- User2 use the command:
# yum localinstall /path/yafray-0.0.8-2exr.i386.rpm
Yum detected the dependency which is OpenEXR, add it for installation then ask User2 for confirmation. User2 chooses yes for installing and yum completed its task.
It also possible to update with package from a desktop by using the command:
# yum localupdate /path/packagename
which is the equivalent of rpm -Uvh /path/packagename.

