Summary: | wish: add install DVD repository | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nadav Kavalerchik <nadavkav> | ||||||||
Component: | yum | Assignee: | Jeremy Katz <katzj> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | low | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | 7 | CC: | contact, gopi.6703, james.antill, robatino | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | f8 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2007-12-03 18:39:24 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Attachments: |
|
Description
Nadav Kavalerchik
2007-07-19 17:31:46 UTC
It would really be nice if this could be integrated with yum-presto so one could have the option of combining an old package on DVD with a downloaded deltarpm to minimize downloading. Created attachment 160240 [details]
Yum crash dump
The crash dump is an error that's been fixed in a later yum release. yum 3.2.2 is in updates-testing, please upgrade to that and try the conditions that created the error. thanks Created attachment 160241 [details]
A patch to the yum module
As ROOT
cd /usr/lib/python2.5/site-packages/
patch -p0 < {location of patch}/yum-packages.py.patch
I had a similar (if not the same) problem recently - the crash dump is attached. I created a patch (also attached) that allows yum to ignore the fact that the repo now has no media number - I don't fully understand it myself but at least it now works. Oops! I just witnessed the mid-air collision in bug updates. Sorry for any toe stepping. I tried the yum in updates-testing and It worked with my local DVD repo. In case it doesn't fix the problem for you I've submitted my patch anyway for review. I would still like to know why yum is looking for a media number given that the repo is on a local disk (not on media) but I suspect that this is because of a file contained within the repo itself, or am I asking the wrong question? I remember having this problem before when some KDE components (?) weren't installed, preventing yum from decoding media:// urls. The media:// problem I mentioned happened with FC3 or FC5 Created attachment 275951 [details]
allow spaces in yum baseurl
There is a (bug?) in Fedora 8 where if you let Gnome auto-mount the DVD (most users will) it will mount it as "/media/Fedora 8 i386 DVD" and if you put file:///media/Fedora 8 i386 DVD in your dvd.repo it will give you an error: Options Error: Error parsing 'file:///media/Fedora 8 i386 DVD': URL must be http, ftp, file or https not "" This happens because there are spaces in the name of the CD, which is the name that K3B gives it when you burn the ISO. The workaround is to either give your DVD a name with no spaces in it or apply a patch similar to the above patch to config.py That's not really the way you want to set up the DVD repo. You really want to use the mediaid support so that you can properly be prompted for the DVD if you don't already have it inserted. If you install Fedora 8 from DVD, this gets set up automatically. If you don't and want to add it later, just copy the repo file from the top-level of the DVD and things will work properly. |