This is what I get
$ sudo yum install git-core
file://localhost/tmp/common1/x86_64/redhat/50/base/ga/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/tmp/common1/x86_64/redhat/50/base/ga/Server/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
No package git-core available.
Nothing to do
$
What is wrong here?
Update: Current State of the configuration files:
$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
metadata_expire=0
[base]
name=Red Hat Linux - Base
baseurl=file://localhost/tmp/common1/x86_64/redhat/50/base/ga/Server
$ ls /etc/yum.repos.d/
$
file://localhost/tmp/common1/x86_64/redhat/50/base/ga/Server
? A local file should be referenced asfile:///path/to/file
... Why thelocalhost
in there? Do you actually have a directory namedlocalhost
in the root of your server??? – Yanick Girouard Mar 13 '12 at 23:34Linux 2.6.18-238.0.0.0.1.el5xen
– Lazer Mar 14 '12 at 12:18/etc/redhat-release
? – pbm Mar 14 '12 at 18:25Red Hat Enterprise Linux Server release 5.6 (Tikanga)
– Lazer Mar 14 '12 at 19:58