LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2012, 03:02 AM   #1
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 175

Rep: Reputation: 9
add dvd to yum repository in fedora 15


hi i am trying to install packages from fedora 15 dvd using yum
but no success till know
I have created a file.repo
in /etc/yum.repo.d/
[name]
name=name
baseurl=file:///media/fedoradvdpath/
gpgcheck=0
enabled=1

yum update all is showing error that repomd.xml not found.
 
Old 02-15-2012, 03:12 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Is the baseurl pointing to the directory that holds the repomd.xml file?

Example: If the repomd.xml file is in /media/fedoradvdpath/Server/, the baseurl should point to that.

PS: I'm not familiar with Fedora, but on Red Hat DVD's there can be more then one repo present (Server/Cluster/etc). Make sure you point to the correct repo.

Hope this helps.
 
Old 02-15-2012, 03:27 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
It seems you are directly pointing yum to some dvd inside media which I think is inappropriate
you will have to copy the RPMS to local directory for a start then follow proper steps to configure yum

use createrepo to create repomd.xml and other repodata inside the repository

use google to search "how to configure yum in fedora"
 
Old 02-15-2012, 03:49 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Please check all these steps on this link and then follow:

http://poppleit.com/how-to-create-a-...ra-09-05-2011/

First you have to copy all the packages in a directory /var/ftp/pub/Server/

then you have to issue this command:
Code:
# createrepo ./
and also check yum-updatesd and ftp service is running.

Last edited by Satyaveer Arya; 02-15-2012 at 03:53 AM.
 
1 members found this post helpful.
Old 02-16-2012, 10:31 AM   #5
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 175

Original Poster
Rep: Reputation: 9
thanx for all the replys
But i don't want to copy all the rpms to hard drive to save time and resources.
 
Old 02-16-2012, 04:26 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
first i would NOT NOT install anything off the dvd
it is old and the versions on it are INCOMPATIBLE with any programs updated from the fedora reop

basically if you did any of the required security updates you WILL NOT be installing any program from the dvd
Even if you set up the "install-media" yum WILL grab the CURRENT from the fedora repo and fedora-updates

so do not even bother with dvd
it is useless .

the 4.6 gig install dvd for fedora 15 already has 4.5 gig's of updates
99.99% of the dvd is outdated .

Last edited by John VV; 02-16-2012 at 04:30 PM.
 
Old 02-17-2012, 11:24 AM   #7
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 175

Original Poster
Rep: Reputation: 9
in virtual machines installing server from repository from internet is time taking, to save time it is usefull to install from dvd.
 
Old 02-17-2012, 05:32 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
but the software on the fedora 15 dvd is OLD.And in fedora terms it is almost ancient
that fedora 15 dvd has been outdated for almost 6 months .

99.9999% of the dvd has had security and bugfixes added
and uses a NEWER kernel that was on the dvd
 
Old 02-19-2012, 04:45 AM   #9
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 175

Original Poster
Rep: Reputation: 9
Do any one know how to add dvd to repository or not ?
 
Old 02-19-2012, 02:31 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
replace the "enable=0" with a "enable=1" in the media repo ( might be called "packagekit-media.repo" )
if it is not in the etc/yum.repo/ folder it will be on the dvd

but
when you try to install from the dvd yum will AUTOMATICALLY grab the CURRENT version from the fedora updates repo
and NOT install from the dvd
the dvd is useless

Last edited by John VV; 02-20-2012 at 12:48 AM.
 
Old 02-19-2012, 06:51 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try this
https://code.google.com/p/iredmail/w...Yum_Repository
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6: DVD repository works only from yum command line, not from GUI Hammo Linux - Software 1 08-16-2011 10:15 PM
How to add old package using yum from repository sbalvir Linux - Newbie 4 11-21-2008 06:04 AM
How to add WEB repository in YUM pradeep2002gs Linux - Newbie 5 07-24-2008 06:07 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM
add repository server to yum... ilectrcbob Linux - Newbie 2 04-05-2005 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration