View Full Version : Extract from DVD
kb55
2007-02-20, 05:56 PM CST
Hi!
Is there anyway to extract the programs from the Fedora 6 DVD instead of from on-linre repositories?
Seve
2007-02-20, 06:02 PM CST
Hello:
Yes, you can copy them over to your installation or you can setup a local repo.
The instructions are here :
http://fedoraproject.org/wiki/Bugs/FC6Common
http://www.city-fan.org/tips/YumRepoFromImages
Seve
kb55
2007-02-21, 03:49 PM CST
Well I've bee trying to create my own local repository so I can extract files from a Fedora 6 DVD but so far to no avail. I began by following the steps from the "http://www.city-fan.org/tips/YumRepoFromImages" and got as far as what you see below. I would appreciate some guidence whith 'chon'.
Thnx
[root@localhost ~]# mkdir -p /home/ken/repo/dvd
[root@localhost ~]# chcon -t mnt_t /home/ken/repo/dvd
chcon: can't apply partial context to unlabeled file /home/ken/repo/dvd
Dies
2007-02-21, 04:37 PM CST
Not sure what tutorial you're following but really the easiest way is to just point yum to it, you have a directory /home/ken/repo just copy all the packages from the CD to that directory then install createrepo it should be on the disk if not download it, I don't think it has any deps.
Once you have that installed just
cd /home/ken/repo
createrepo .
That should generate all the needed files, then point your yum to it, the easiest way to do that is to backup everything in yum.repos.d then place a single file in there, call it whatever you want.
[Ken's Local repo]
name=Fedora $releasever - $basearch - Base
baseurl=file:///home/ken/repo/
enabled=1
gpgcheck=0
And your done, if you don't want to give up the disk space just burn it to a DVD and adjust your config:
[Ken's Local repo]
name=Fedora $releasever - $basearch - Base
baseurl=file:///media/ <whatever you named the disk, so make sure you name it>/
enabled=1
gpgcheck=0
One quirk when putting it on a DVD is that Yum will only work that way if ALL the packages are right there, they cannot be inside of folders on the disk, they all have to be at the top level or it won't work.
Edit - Sorry, also if using the DVD option make sure you insert the disk and that it's recognized, usually an icon on your desktop before doing anything with yum or yumex.
Hope that helps.
sideways
2007-02-21, 04:57 PM CST
Well I've bee trying to create my own local repository so I can extract files from a Fedora 6 DVD but so far to no avail. I began by following the steps from the "http://www.city-fan.org/tips/YumRepoFromImages" and got as far as what you see below. I would appreciate some guidence whith 'chon'.
Thnx
[root@localhost ~]# mkdir -p /home/ken/repo/dvd
[root@localhost ~]# chcon -t mnt_t /home/ken/repo/dvd
chcon: can't apply partial context to unlabeled file /home/ken/repo/dvd
You're applying instructions for an iso image on the hard drive, I posted a modified version for using the actual dvd itself here
http://www.fedoraforum.org/forum/showpost.php?p=736602&postcount=6
kb55
2007-02-21, 06:04 PM CST
Thanks for the feedback. what I was trying to do was mount the Fedora 6 DVD directly at the suggestion of Seve, a regestered forum person. Here's his quote:
QUOTE=Seve]Hello:
Yes, you can copy them over to your installation or you can setup a local repo.
The instructions are here :
http://fedoraproject.org/wiki/Bugs/FC6Common
http://www.city-fan.org/tips/YumRepoFromImages
Seve[/QUOTE]
And here is what was suggested at www.city-fan.org/tips/Yum/RepoFromImages/
Create a Yum Repository from ISO Images
This page describes how to create a local yum repository from ISO images stored on the local hard disk. This repository can then be used for the [base] repository in your yum configuration, making package installation quick and easy.
Fedora Core 3, Fedora Core 4, Fedora Core 6
1. Create a yum repository from your DVD
*
# mkdir -p /path/to/your/repo/dvd
# chcon -t mnt_t /path/to/your/repo/dvd
# mount -r -o loop /path/to/FC-6-i386-DVD.iso /path/to/your/repo/dvd
# cd /path/to/your/repo
# rpm -Uvh dvd/Fedora/RPMS/createrepo*
# createrepo .
/!\ Be careful with your directory hierarchy; it is important that the only RPM files that live in the /path/to/your/repo directory or anywhere underneath that directory are the RPMs from your DVD ISO (i.e. the ones in the dvd/Fedora/RPMS directory); any other RPMs that may be present will also be found by createrepo and included in the repository, which is probably not what you want.
2. Ensure that the DVD ISO image is mounted at every reboot
*
edit /etc/fstab and add new line:
/path/to/FC-6-i386-DVD.iso /path/to/your/repo/dvd iso9660 ro,loop 0 0
3.
Configure yum to use your new repository
*
edit /etc/yum.repos.d/fedora.repo or /etc/yum.repos.d/fedora-core.repo, whichever one is present
*
comment out any line starting with baseurl or mirrorlist
* add a new line:
baseurl=file:///path/to/your/repo
You should then be able to use your local repository to install new packages etc.
Dies
2007-02-21, 06:13 PM CST
# chcon -t mnt_t /path/to/your/repo/dvd
Sorry, that command didn't seem familiar.
But now you have three different options that will accomplish the same thing.
kb55
2007-02-21, 07:43 PM CST
Hey Dies!
Thanks so much for your effort in trying to solve this puzzle for me ... I've been caught up trying to sove this as well as making a dinner for my on her B'Day today. I will resume this effort myself tomorrow full time and let you know the results ... thanks again,
Ken
rpstitz
2007-04-03, 02:42 AM CDT
I needed extra packages from my CDs (set of five) after my first install, and since I was still figuring out FC and wasn't "settled in" yet, I did it the "easy" way: I reinstalled the whole thing and selected the packages more carefully (basically everything except the servers). If you don't have a lot of files you don't want to loose, or can back them up to CD or a flash drive, this might be the easiest option for you, too. Good luck.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.