Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-09-2009, 04:46 PM   #1
LQ Newbie
Registered: Dec 2008
Location: Indiana
Distribution: Fedora
Posts: 25

Rep: Reputation: 0
Yum local install - package and all dependencies in local directory

I am trying to install tilp, a program for the link between a computer and a Texas Instruments calculator. I have downloaded all the packages to a local directory. I tried telling yum to install all the packages at the same time, though, the dependencies still fail to resolve (though they are all in the directory).

I don't know if it would be safe to force install without the dependencies (even though I would install them later).

Any help would be greatly appreciated
Thank you,
Luke P. Patmore
Old 12-10-2009, 01:50 AM   #2
LQ Newbie
Registered: Jul 2004
Posts: 22

Rep: Reputation: 16

Could we see the /etc/yum.conf and the error message your seeing? Basically you need a few things to get yum to work:

1.) yum RPM installed
2.) An /etc/yum.conf with the appropriate URL's in the config file. This could point at http://localhost/SOFTWARE/ or file:///usr/local/SOFTWARE/
3.) httpd running on box if doing it via web url
4.) in the SOFTWARE directory, you will need headers. What linux version are you running? For newer software, createrepo seems to be the key. I think the command "yum-arch ." builds the headers too.

Try that and let us know what comes to be
Old 12-11-2009, 04:27 PM   #3
LQ Newbie
Registered: Dec 2008
Location: Indiana
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 0
I will post this information as soon as I get to my machine tonight.

Many thanks,
Luke Patmore
Old 04-22-2011, 03:25 PM   #4
LQ Newbie
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Use rpm -ivh

Hello, lppatmore. If you're absolutely sure you have all the dependencies on the disk, then try making a new directory, moving the package and all its dependencies to that directory, then going to that directory and trying:

sudo rpm -ivh *.rpm

- Xerebus
Old 04-22-2011, 03:55 PM   #5
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,991

Rep: Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428
'yum localinstall' is for one package.
Dependencies will be downloaded from the enabled repositories only.

For local dependencies : # rpm -Uvh *
.. when the package + all dependencies are in the same directory.

'rpm -ivh' is used when you want to have two versions of the same library installed.
( Or if you are absolutely sure that no package by the same name is installed.)
Yum always uses 'rpm -Uvh' for install.
Old 03-23-2013, 09:41 PM   #6
LQ Newbie
Registered: Feb 2010
Location: florida, usa
Distribution: slackware, fedora, centos
Posts: 3

Rep: Reputation: 0
I see many forum/mailing list posts addressing the issue of an adhoc package installation via yum. Most responders recommend setting up a local repo. Unless you're a system administrator, a developer, or someone who wants to automatically download and update packages not supported by repository, this not be worth the trouble.

An rpm package can be installed from an arbitrary local folder by pointing yum at it:


# yum install /home/dennis/Downloads/google-earth-stable_current_i386.rpm

This still maintains the integrity of the rpm and yum databases.
Old 02-21-2015, 02:53 AM   #7
LQ Newbie
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
For anyone who will see this thread, to install some rpms from a local directory use this command:

$ cd /your/directory/
$ sudo yum install `ls | grep rpm`


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install packages kept at local directory karthikg356 Linux - General 1 12-26-2007 07:42 AM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM
yum, local install and public key kulmis Fedora 1 03-19-2006 07:38 AM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
install local dir as yum repository unixmad Linux - Newbie 2 10-01-2004 04:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration