Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Support > Installation Help

Installation Help Need help on installation? Having problems? Get help here on your fresh installations or upgrades.


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-09-07, 09:02 AM CDT
aifol Offline
Registered User
 
Join Date: Sep 2005
Posts: 1
yum localinstall without internet connection

Hi,

I am installing FC4 on Dell Gen5 box at home. I had a problem with xorg that incorrectly recognized my FP monitor. Through forums I found this bug has been fixed that newer version of xorg. I am trying to update xorg (and the rest of the packages) with yum. The problem is that I have no access to internet at home yet.

I have downloaded FC4 updates and copied them to my local HDD. When I run

yum localinstall *

I am getting "cannot find repodata/repomd.xml" error. What should be in this file? Can I create it without internet connection?

I've read a lot of posts on different forums and found nothing 100% relevant. should this be a "common" problem?
thanks.
aifol
Reply With Quote
  #2  
Old 2008-04-24, 12:15 PM CDT
HowardRoark Offline
Registered User
 
Join Date: Mar 2008
Posts: 32
I have searched and searched but have yet to find a way to do a TRULY local install. This would be EXTREMELY VALUABLE.

Even doing "yum localinstall" goes online to get dependencies. If I'm trying to install some programs from a F8 DVD that I KNOW are completely contained with all the dependencies on the disk (because they can be successfully installed from there while doing a fresh install), yum insists on going online for its dependencies. This wouldn't be a problem except that it takes a LONG time, and I'm trying to do this on 57 machines.

Does anyone know how to do a TRULY local install?
Reply With Quote
  #3  
Old 2008-04-24, 12:23 PM CDT
PabloTwo's Avatar
PabloTwo Offline
Registered User
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 2,613
Use the --disablerepo=* switch to prevent yum from trying to go online and check with the repos.

yum localinstall --disablerepo=* somepackage
Reply With Quote
  #4  
Old 2008-04-24, 01:14 PM CDT
Janl Offline
Registered User
 
Join Date: Sep 2006
Location: Kentucky, USA
Age: 29
Posts: 310
The other option would be to simply use the "rpm" command to install the package. Short of this, then as PabloTwo stated you could simply disable each of your repos and use yum localinstall.
Reply With Quote
  #5  
Old 2008-04-24, 03:49 PM CDT
HowardRoark Offline
Registered User
 
Join Date: Mar 2008
Posts: 32
OK, so this means that yum is smart enough to go back to the DVD for the files if the repos aren't available. I'll try that.

Janl, my understanding of the "rpm" is that if there are any dependencies at all, then the command will fail. And the packages that I'm trying to install to have dependencies (on the same DVD). So yum would be necessary to pick these up, no?

Thanks for the suggestions!
Reply With Quote
  #6  
Old 2008-04-24, 04:21 PM CDT
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 10,784
Last time I tried to run YUM with all repos disabled ('--disablerepo=*'), it choked violently and died with copious error output. AFAIK, there must be at least one repo enabled - but it can be a local repo, say InstallMedia, which would be the install DVD. YUM will not look on-line if no remote repos are enabled.

rpm will not fetch needed dependencies, but you can be prepared with them ahead of time, and install all the necessary packages at one time: just list them all for eaxmple:
rpm -ivh <packagename> <dependency1> <dependency2> ...

V
Reply With Quote
  #7  
Old 2008-04-24, 04:54 PM CDT
PabloTwo's Avatar
PabloTwo Offline
Registered User
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 2,613
--disablerepo=* will disable all the repos defined, including the local DVD repo. In order to keep the DVD repo active, you'd need to use multiple instances of the --disaablerepo- option to target all the online active online repos (I think you are allowed multiple instances of that option). So if any deps aren't found on the local DVD, you're still going to get an install failure.
Reply With Quote
  #8  
Old 2008-04-25, 05:28 AM CDT
Janl Offline
Registered User
 
Join Date: Sep 2006
Location: Kentucky, USA
Age: 29
Posts: 310
If you know the dependencies, then you can still use RPM to install the packages. You just have to include all of the packages in the command. Another option is if you have all of the packages together in a single directory alone you could use
Code:
rpm -Uvh *.rpm
which would install all .rpm files in that directory.

The other option as mentioned above would be to disable every repo except the "local" repo and use YUM.

***EDIT***
Another option I just thought of would be to use Opyum. It was designed to create update package sets for use in an offline environment. I haven't used it, but it sounds like it was built for your type of situation.

You can find some information about it here if interested.

It should also be installable from the repositories or from Koji directly.

Last edited by Janl; 2008-04-25 at 08:19 AM CDT.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet connection slow, LAN connection fine tameboy Networking 45 2008-07-19 11:10 AM CDT
yumex and localinstall mpajoh Software 1 2006-09-14 12:28 PM CDT
yumex localinstall mpajoh Software 1 2006-09-14 12:20 PM CDT
yum localinstall problems hhampro General Support 3 2006-06-01 05:20 PM CDT
yum localinstall error Andrew Robinson gmane.linux.redhat.fedora.general 2 2006-04-03 05:00 AM CDT

Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 07:02 PM CDT.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Rules | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2010, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET 2.3.10) coded by NLP-er