PDA

View Full Version : learn yum to install packages from local source


maestro2912
2006-11-01, 12:44 PM CST
After installing new FC 6 x86_64, I want to add some software. I want install software from DVD, as my internet connection is too slow. How can I do that?
I removed all old .repo files, than created my dvd.repo file. It contains exactly this content:
[dvd]
name=Fedora DVD
baseurl=file:////media/disk
enabled=1
gpgcheck=0


yum list works
yum install mc not, also package updater & kyum

I always got this message:
[root@creative yum.repos.d]# yum install mc
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mc to pack into transaction set.
media://1161132068.269978%236/Fedora/RPMS/mc-4.6.1a-30.fc6.x86_64.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve Fedora/RPMS/mc-4.6.1a-30.fc6.x86_64.rpm from DVD
error was [Errno 4] IOError: <urlopen error unknown url type: media>

But that file exit:
[root@creative yum.repos.d]# head /media/disk/repodata/repomd.xml
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
<data type="other">
<location xml:base="media://1161132068.269978#1" href="repodata/other.xml.gz"/>
<checksum type="sha">92676444389fbd4444f0f218f556965cb5921f5d</checksum>
<timestamp>1161133130</timestamp>
<open-checksum type="sha">0ad7ea693f10fc668a09baaa3a1c77889da32229</open-checksum>
</data>
<data type="filelists">
<location xml:base="media://1161132068.269978#1" href="repodata/filelists.xml.gz"/>


Can somebody help me?

SaGS
2006-11-03, 07:05 AM CST
FC5 managed to break "Add/Remove Programs" from CDs (I think DVDs worked, after the tweak you mentioned).

FC6 managed to break this for DVDs too:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=212180

bob
2006-11-03, 07:13 AM CST
Here's the official FC-5 'how-to': http://www.city-fan.org/tips/YumRepoFromImages