Ask Your Question

What is the difference between `yum install` and `yum localinstall`?

asked 2013-12-25 20:35:45 -0500

Black_Bucket gravatar image

updated 2017-01-13 15:21:31 -0500

mattdm gravatar image

Hello. I'm going to add RPMFusion to my list of repos and to do it (I am told) to type the command su -c 'yum localinstall --nogpgcheck$(rpm -E %fedora).noarch.rpm. On another (post) a user suggests me to type a similar command but with install instead of localinstall. Reading the man page for yum I found that the later is "maintained for legacy reasons only", and that we should use former. So I want to know if there is a real difference to prefer one over the other.


edit retag flag offensive close merge delete

6 Answers

Sort by ยป oldest newest most voted

answered 2013-12-25 23:54:40 -0500

mether gravatar image

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.

edit flag offensive delete link more

answered 2016-02-29 20:52:36 -0500

rboop gravatar image

Just wanted to let people know the ways I had to fiddle with this command to get it to work, specifically to get RPM Fusion installed.

sudo yum install$(rpm -E %fedora).noarch.rpm$(rpm -E %fedora).noarch.rpm

This is Fedora 23. When using su, it assumed that localinstaller was the user! So I got rid of the su -c user change, added sudo to make it superuser since that's necessary for yum, and took out the ''s around the bulk of the command. My machine does not know localinstall and I wasn't able to get it on here, so I tried what sounded like an alternative per what I've read above in this comment. So I hope this helps if you're on F23.

edit flag offensive delete link more

answered 2013-12-25 23:37:49 -0500

hmaarrfk gravatar image

You found the answer yourself.

If you give it a file name and not a package name, then yum will look in the current directory for that file.

yum localinstall might ONLY install from the working directory, I can't say for sure since I've never rigorously tested it.

edit flag offensive delete link more

answered 2014-11-23 08:14:59 -0500

shark gravatar image
  1. sudo yum install <package name=""> basically searches the package in the repositories , download them along with dependencies and installes it.</package>
  2. sudo yum localinstall <package name="">.rpm basically searches the package in the working directory of terminal ( which is your /home by default ) and solves the dependencies and downloads dependencies and install them.</package>

we use yum install if the package is available in repositories. ( like sudo yum install vlc ) whereas we use we use yum localinstall for packages that are not in the repositories and so we have downloaded them from the internet ( like sudo yum localinstall skype.rpm ; skype.rpm downloaded form )

edit flag offensive delete link more

answered 2014-11-11 20:35:23 -0500

Niti gravatar image

updated 2014-11-11 20:40:48 -0500

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.

edit flag offensive delete link more

answered 2014-11-23 18:27:41 -0500

faight gravatar image

how do we find repositories to download? thanks

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-12-25 20:35:45 -0500

Seen: 102,398 times

Last updated: Nov 23 '14