General discussion

Locked

Local yum repo without copying DVDs?

By CharlieSpencer ·
Is there a way to create a local yum repository without having to copy the contents of the DVD to the local hard drive? I've got four DVD's and a 20 gig HD. I'd prefer yum attempt to install / update directly from the DVDs.

This conversation is currently closed to new comments.

45 total posts (Page 1 of 5)   01 | 02 | 03 | 04 | 05   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Why don't you get it from the mirrors then?

by jmgarvin In reply to Local yum repo without co ...

I don't know of a way, but with only 20gb, getting it from the mirrors is more efficient at that point...or do you not have network connectivity? If that is the case, you gotta pop in the DVD :-(

(I'm sure you know, but just got to Desktop->System Settings->Add Remove Programs and you can do it from there too)

You might also want to install yumex (a front end for yum that makes it cleaner)

Collapse -

Why I've chosen not to use the mirrors at this time

by CharlieSpencer In reply to Why don't you get it from ...

I've got network connectivity, but I'm assuming the DVD's have got to be faster.

Add / Remove Software and yumex, like yum, default to using repositories over the Internet. This requires setting up an environmental variable for our proxy server. That's what I did on my last Linux install, but I forgot to bookmark one of the many sites with the exact command. In any case, while I haven't learned / memorized how to set up that particular variable, I now know I can successfully Google for the instructions. To me that's almost as good. Also, setting up a permanent proxy server variable requires hard coding my domain password in one or more places, unless I want to manually create the variable each time I log on. I'm not the biggest security freak in the world, but I refuse to key my password in text configuration file. Besides, I'd have to go back and change the coded p/w periodically as my domain p/w changes. If I can get a DVD-based local repository to work for yum, it will also work for Add / Remove and yumex.

I can find instruction on setting up a local repo but they all involve copying the CD or DVD contents. I've chosen finding out how to do it without taking up all my hard drive space as my next windmill to tilt at.

Finally, I've got the damn DVDs and they ought to be good for something besides bike spoke reflectors. I don't know what's on three of them of the four and unless I can get this working, I won't. Sure, I can mount them and look at a bunch of .rpm names, but that won't tell me what the heck they do. Hopefully A / R and yumex will tell me what those apps are a lot quicker than Googling each .rpm name one at at ime.

Editorial - I'm not impressed with a package management tool that defaults to the Internet for updates and has to be beaten into installing packages from CD / DVD. I don't know if this is the standard yum configuration or just the way its set up in Fedora. When I did create the proxy server variable and used the company T1, the first pass of "yum update" took over three hours. That's got to be a killer for Joe Homeuser who has dial-up or no Internet connection at all. Free software is of no value if you can't install it. - End of editorial -

Collapse -

clarify a bit

by apotheon In reply to Local yum repo without co ...

It sounds like you're saying you just want to use the DVDs as your repository. Is that the case? If so, I believe you should be able to do so fairly easily. Check the manpages for YUM for details on how to configure its source repositories (I don't recall how to do that for YUM, since I haven't used Fedora for most of a year and never had to deal with configuring package sources very much even when I did use it). For Debian, it's as simple as adding a line to the /etc/apt/sources.list file. For YUM, it should be similarly simple.

Collapse -

Yes, that's the case

by CharlieSpencer In reply to clarify a bit

I received a sample five-line .repo file on FedoraForum. I used it to create a .repo file that will work for the first DVD in the set (Fedora Core). That DVD mounts as /media/disk. Unfortunately, the second one mounts as

/media/Fedora Core 5 Updates

I need to specify that path in the .repo's baseurl parameter, but I can't figure out how to enter the spaces. All baseurl is getting is /media/Fedora. I'm sure there's a simple way to indicate a string has spaces in a configuration file, and I'm betting whatever technique can be used for more than just a .repo file. That's the point I was at when I quit for the day, and I haven't searched for "string variable space" yet.

I tripped over Duke University's yum page. I got the impression they have something to do with yum development. There was an e-mail from February '06 asking that yum incorporate this capability as part of the standard config, and a reply that they were looking into it. It would be nice if it would fail over to the optical drive if the Internet was not available instead of stopping.

Collapse -

Don't use yum though

by jmgarvin In reply to Yes, that's the case

You have Add Remove Programs (re: my other post) that is far easier and a lot faster*

* yum is probably the worst package manager out there. YaST is far superior and apt-get superior to that.

Collapse -

APT-RPM

by apotheon In reply to Don't use yum though

There's a version of APT that, last I checked, was available for Fedora. It's generally called APT-RPM to distinguish it from the normal Debian version of APT. I don't know how well it works with Fedora, though, since it's not officially supported the way YUM is.

Collapse -

It only works ok

by jmgarvin In reply to APT-RPM

However, you can set it up far more easily than yum.

Warning: It is unstable. In Fedora Core 5 things tend to break if you are not careful. DO NOT DOWNLOAD PACKAGES FROM THE WEB VIA APT! You will not have a good time.

apt-rpm http://apt-rpm.org/options.shtml

Collapse -

I'm not interested in the web

by CharlieSpencer In reply to It only works ok

I'm not trying to download from the web. That's EXACTLY what I'm trying NOT to do.

Is apt the same thing as apt-rpm? I don't get man pages for either, so I assume neither is installed. Now we're back to how do I install them without being able to access the DVDs.

Collapse -

We'll bag all this...check my post at the bottom

by jmgarvin In reply to I'm not interested in the ...

I think we got off on a tangent ;-) Check my post at the bottom and I think that'll work for ya...

Collapse -

re: APT

by apotheon In reply to I'm not interested in the ...

When he said you shouldn't download packages via APT, he was referring to APT-RPM on Fedora. The standard APT tools for use with .deb packages (for Debian and Debian-based distributions, rather than .rpm packages) are quite stable. It's just the RPM port that is reportedly kinda sketchy.

Back to Linux Forum
45 total posts (Page 1 of 5)   01 | 02 | 03 | 04 | 05   Next

Related Discussions

Related Forums