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
|