LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2007, 01:21 AM   #1
lord loh.
LQ Newbie
 
Registered: May 2007
Location: Lubbock, TX
Distribution: Slackware ubuntu Arch
Posts: 21

Rep: Reputation: 0
Local YUM Repo


I read several articles on the internet about creating local YUM repositories from the DVD for installation over the LAN.

All articles mention copying the FC6 DVD RPMS.

I created a folder on my HDD
/repo/base/RPMS

the /repo is accecible from apache.

and copied all the RPMS from /media/FC_6 x86_64 DVD/Fedora/RPMS into this directory and did the createrepo /repo/base

now I have two folders

/repo/base/RPMS
/repo/base/repodata

After editing the fedora-core.repo
and running the add/remove software, I see the message

Cannot open/read repomd.xml file for repository: base

Did I copy the DVD correct? Where have I gone wrong?
 
Old 05-27-2007, 06:38 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
It is a better idea to create a new Local-Media.repo (example name) file in the /etc/yum.repos.d directory, sample below;

[local]
name=Local-Media
baseurl=file:///repo/base
gpgcheck=0
enabled=1
 
Old 05-28-2007, 12:41 AM   #3
lord loh.
LQ Newbie
 
Registered: May 2007
Location: Lubbock, TX
Distribution: Slackware ubuntu Arch
Posts: 21

Original Poster
Rep: Reputation: 0
Yum over LAN?

I would also like to allow the repo to be operated by other computers over lan.

I guess there is a way to mount remote file systems and use it as a local media. But I thought that the httpd option would be better.

I however manaed to get it working by replicating the directory structure of the internet based repos and copying the DVD into it. Also, when I tried to run createrepo, the resultane repodata did not support grouping of the packages in the "Add Remove Software". So I had to use the DVD repodata as it was and it worked.

PS - I copied the entire DVD and *not* only the Fedora or RPMS directory

Last edited by lord loh.; 05-28-2007 at 12:43 AM.
 
  


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
FC5 yum-local + internet repo enable ? roh166 Fedora 1 02-20-2007 11:32 PM
Error message after setting a local repo for YUM Unforgiven79 Fedora 1 01-14-2007 10:21 AM
local yum repo error shams Fedora 1 12-24-2005 11:28 PM
Gnome 2.10 yum repo nsk078 Fedora 1 04-01-2005 10:11 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 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
Open Source Consulting | Domain Registration