LinuxQuestions.org
Register a domain and help support LQ
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, 04: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, 04:12 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
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, 04:27 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
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, 04:49 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

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 04:53 AM.
 
1 members found this post helpful.
Old 02-16-2012, 11: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, 05:26 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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 05:30 PM.
 
Old 02-17-2012, 12:24 PM   #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, 06:32 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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, 05: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, 03:31 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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 01:48 AM.
 
Old 02-19-2012, 07:51 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:15 PM
How to add old package using yum from repository sbalvir Linux - Newbie 4 11-21-2008 07:04 AM
How to add WEB repository in YUM pradeep2002gs Linux - Newbie 5 07-24-2008 07:07 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 03:19 PM
add repository server to yum... ilectrcbob Linux - Newbie 2 04-05-2005 04:26 PM


All times are GMT -5. The time now is 07:02 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration