`yum install` and `yum localinstall`
There is zero difference between install and localinstall when dealing with local packages. There used to be a difference in the past versions but not anymore. It is just retained for compatibility as the man page indicates.
`rpm -ivh` and `yum localinstall`
if u have downloaded an rpm say "abc-1.2.3.rpm" and u want to install it.
1)either u can use traditional way i.e.
==>rpm -ivh abc-1.2.3.rpm
;but this package will demand for dependencies like depenD1.x86_64 , depenD2.x86_64 etc. And those dependancies are present in yum repository. then
a]u may have to install that dependancies first (using yum)
b]then will go for rpm -ivh abc-1.2.3.rpm.
2)yum localinstall will do this 2 steps in 1 step.
a]#yum localinstall abc-1.2.3.rpm this will fetch and install all the dependencies from yum repository.
NOTE:-If rpm pkg not require any dependancies then use traditional method.
联系客服