LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum local install - package and all dependencies in local directory (https://www.linuxquestions.org/questions/linux-newbie-8/yum-local-install-package-and-all-dependencies-in-local-directory-774565/)

lppatmore 12-09-2009 04:46 PM

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

RDove 12-10-2009 01:50 AM

hi,

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

lppatmore 12-11-2009 04:27 PM

I will post this information as soon as I get to my machine tonight.

Many thanks,
Luke Patmore

Xerebus 04-22-2011 03:25 PM

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

knudfl 04-22-2011 03:55 PM

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

msocorcim 03-23-2013 09:41 PM

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:

Example:

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

This still maintains the integrity of the rpm and yum databases.

Makeit 02-21-2015 02:53 AM

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

Code:

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



All times are GMT -5. The time now is 09:55 AM.