FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1. create a .repo file in /etc/yum.repos.d, called fc6dvd.repo
(su && gedit /etc/yum.repos.d/fc6dvd.repo)
copy paste following in that file
Code:
[fc6dvd]
name=Fedora Core 6 Installation DVD
baseurl=file:///media/disk
enabled=1
gpgkey=file:///media/disk/RPM-GPG-KEY
gpgcheck=1
## baseurl : give the path where the repodata folder exists
## gpgkey : give path of folder where RPM-GPG-KEY exists
Hey! thanks for your reply. But it is still not working. I now get a message like: cannot open/read repomd.xml from fc6dvd.
First I used the repodata folder in the dvd and then i created my own using the createrepo -o /myrepo /mnt/cdrom/Fedora/RPMS command
I get the same error message.
Then one more thing: what do mean by runing yum?
Thanks
What sn68 said, is to give the complete path to the DVD in baseurl, which should be something like this:
Quote:
/media/FC-6\ x86_64\ DVD/Fedora/RPMS/
For GPG-KEY it should be something like this:
Quote:
/media/FC-6\ x86_64\ DVD/RPM-GPG-KEY
"Run yum" = Go ahead and install with yum, it should install from the DVD. Also, I have x86_64, to get the exact path, put the DVD in the drive, change directory to "me" and hit Tab on the keyboard and bash will complete the word "media", then type "F" and again hit Tab and bash will complete the rest, etc. etc. Then copy & past that command into the file ns68 suggests.
Last edited by Junior Hacker; 03-23-2007 at 02:28 AM.
You can't install packages from DVD/CDs. i thought Fedora Team will sort out this problem in FC6. They didn't.
Solution : For installing Packages from DVD
Put '#' sign before firstbaseurl line in three files fedora-core.repo, fedora-extras.repo and fedora-updates.repo in folder /etc/yum.repos.d
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
add new line below it.
Code:
baseurl=file:///media/disk
---- create a folder 'disk' in /media
Code:
mkdir /media/disk
---- insert Fedora Core DVD and mount it
Code:
mount /dev/hdc /media/disk
---- clean 'yum' cache.
Code:
yum clean all
click on Add/Remove Softwares and install packages from DVD. for installing from internet again, put '#' sign before disk's 'baseurl' line and remove '#' before original 'baseurl' line.
All other threads with similar questions seem to suggest same thing jay73 points out. In that example they use the disk drive that the disc is in, --> /dev/hdc
Maybe the device you are using is not /dev/hdc, my disc drives are hda & hdb because I have sata hard drive.
All other threads with similar questions seem to suggest same thing jay73 points out. In that example they use the disk drive that the disc is in, --> /dev/hdc
Maybe the device you are using is not /dev/hdc, my disc drives are hda & hdb because I have sata hard drive.
Just figured I'd mention it just in case. I remember a couple months ago, someone asked the same question and one of the moderators posted a link to a tutorial that did not resemble any I've seen here lately as I searched for that particular thread. Be damned if I could find it, maybe if I get time I'll backtrack in the Fedora forum. It must have been a good one as the thread starter only replied "Thanks".
Hmm, I remember installing extra packages from dvd when I was still using FC5. As the "recommended" procedure does not appear to work, I did a hunt for the little notebook I made myself at the time. This is what it says:
replace first url line in each file with media disk:
url file:///media/disk
I don't think I had to explicitly mount the disk but I guess that was only because it was automounted.
Note the difference: "url" instead of "baseurl". This did work for me back then but for all I know FC6 may have its own procedure that none of us have been able to figure out yet.
Also make sure that ALL internet repositories are disabled; as long as one is not, yum will try to find it and stumble over it.
This took almost 5 minutes on my notebook.The "comps.xml" file is used to keep track of groups of packages in yum/pirut.if that is not used u will not get the fancy grouping in yum/pirut
3-now edit the /etc/ yum.repos.d/fedora-core.repo file.
it should look something like this.
Code:
[fc6dvd]
name=Fedora Core 6 Installation DVD
baseurl=file:///FC6DVD/Fedora/RPMS
enabled=1
gpgkey=file:///FC6DVD/RPM-GPG-KEY
gpgcheck=1
4-now clean yum's previous cache
Code:
$yum clean all
5-Run pirut from the GNOME menu by clicking Add/Remove Programs.and it will work good now
Now as far as the above procedure is concerned , it looks similar to the methods posted by others.I think the only diference is that "yum" wants the /repodat/ directory to be at the same place where your rpms are store if u look at the /FC6DVD/Fedora/RPMS directory /repodata/ directory is now created.
Or
May be the repodata directory available on your DVD media is not compatible with your system.Caz it was created somewhere else
The downside is that u have to give ~4gb of hard drive space to save the DVD on your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.