LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   yum.conf - extract files from a DVD. How define repo location and what is yum command (https://www.linuxquestions.org/questions/linux-software-2/yum-conf-extract-files-from-a-dvd-how-define-repo-location-and-what-is-yum-command-562292/)

emuub 06-16-2007 04:05 PM

yum.conf - extract files from a DVD. How define repo location and what is yum command
 
I want to use yum to pick packages to install from the F7 installation DVD. Im calling yum in an Xterm.

On the DVD at the top level are:
- a directory 'repodata' which contains 9 items.
comps-f7.xml
filelists.sqlite.bz2
filelists.xml.gz
other.sqlite.bz2
other .xml.gz
primary.sqlite.bz2
primary.xml.gz
repomd.xml
TRANS.TBL
- a directory called Fedora which has all the rpms
===========
1) To make yum find the rpm on the DVD i guess that i need to change yum.conf to add a path to the repository on the DVD - is this true ?

2) In the repo section of the conf file i need to put a line like (from man yum.conf):
[repositoryid] name=Some name for this repository baseurl=url://path/to/repository/

3) I need a yum command line to actually do the installation

Can someone translate this into noobie for me.

The path to the dvd is /media/DVD.
The package i want is KDE
I want to overwrite any kde files that are already on the computer.

Thanks
Mike

Junior Hacker 06-16-2007 08:29 PM

Check post #15 in the thread link below, this was for FC6, but I would think it'll be the same for F7.
http://www.linuxquestions.org/questi...d.php?t=537641

khokho solomi 06-17-2007 07:28 AM

Hi, I have installed packages from the FC7 DVD using yum a week ago. All I had to do is mount the fc7 dvd to, for example, /home/me/disk and then create a file dvd.repo in /etc/yum.repos.d/ with the following lines:
[dvd]
name=Fedora DVD
baseurl=file:///home/me/disk
enabled=1
gpgcheck=0

and all went fine.


All times are GMT -5. The time now is 03:34 AM.