Ask Your Question

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

asked 2013-12-26 02:35:45 +0000

Black_Bucket gravatar image

updated 2017-01-13 21:21:31 +0000

mattdm gravatar image

Hello. I'm going to add RPMFusion to my list of repos and to do it http://rpmfusion.org/Configuration (I am told) to type the command su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm. On another https://ask.fedoraproject.org/question/37715/gstreamer-installed-but-still-dont-have-mp3-support-why/ (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-26 05:54:40 +0000

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-03-01 02:52:36 +0000

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 http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(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 2014-11-24 00:27:41 +0000

faight gravatar image

how do we find repositories to download? thanks

edit flag offensive delete link more

answered 2013-12-26 05:37:49 +0000

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-12 02:35:23 +0000

Niti gravatar image

updated 2014-11-12 02:40:48 +0000

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 14:14:59 +0000

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 skype.com )

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2013-12-26 02:35:45 +0000

Seen: 55,399 times

Last updated: Nov 24 '14