分享

What is the difference between `rpm -ivh` ,`yum install` and `yum localinstall`?

 沙门空海 2018-04-01


`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.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约