LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-19-2012, 05:05 AM   #1
matze1966
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Smile Add a YUM repository


Hi folks,

I have some problems during creation of a yum-repository:
My target is to create 2 repositories:
1. my mounted RHEL 6.3 DVD
2. rpm-directory /home/matze1966/Downloads/rpm

My yum.conf :
--------------------------------------------------------------------------
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[repositoryid]
name=RHEL6_Repositories
baseurl=file:///home/matze1966/Downloads/rpm/
file:///media/RHEL_6.3%20x86_64%20Disc%201/Workstation/
enabled=1
--------------------------------------------------------------------------
After editing yum.conf I make a yum update.
When I want to install a packet with
yum install <packetname> I receive the message:
--------------------------------------------------------------------------
Repository InstallMedia is listed more than once in the configuration

Loaded plugins: product-id, refresh-packagekit, security
Setting up Update Process
No Packages marked for Update
--------------------------------------------------------------------------

Where is the error in my yum-configuration? Is file:///<path> the wrong way? Should I replace file:/// with dir://<path> ?
I donīt know what to do. Can you help me please?

Greetings,
matze1966
 
Old 07-19-2012, 05:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,695

Rep: Reputation: 1750Reputation: 1750Reputation: 1750Reputation: 1750Reputation: 1750Reputation: 1750Reputation: 1750Reputation: 1750Reputation: 1750Reputation: 1750Reputation: 1750
Well it say it's there twice, that sounds pretty self explanatory. check other files in the yum.repos.d directory and also the main yum.conf
 
Old 07-24-2012, 08:33 PM   #3
action_owl
Member
 
Registered: Jan 2009
Location: 127.0.0.1
Distribution: Arch Linux
Posts: 104

Rep: Reputation: 16
You will also need to run the createrepo command on /home/matze1966/Downloads/rpm if you wish to use that as a YUM repo.
 
Old 07-25-2012, 12:06 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 9,526

Rep: Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088
also you DO NOT want to use the install dvd as a repo
it is out of date
It is recommended to use the red hat RHN repo

that has the up to date programs in it

also you DO NOT want to edit the rhn"main" repo to point to the dvd


that repo file is already ON the install dvd
it is called "installmedia.repo" or something like that
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add dvd to yum repository in fedora 15 ac_kumar Linux - Newbie 10 02-19-2012 06:51 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
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM
add repository server to yum... ilectrcbob Linux - Newbie 2 04-05-2005 03:26 PM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration