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 |
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 |
I will post this information as soon as I get to my machine tonight.
Many thanks, Luke Patmore |
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 |
'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. |
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. |
For anyone who will see this thread, to install some rpms from a local directory use this command:
Code:
$ cd /your/directory/ |
All times are GMT -5. The time now is 09:55 AM. |