[CentOS-Base]
name=CentOS-Base
baseurl=file:///mnt/CentOS/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
[root@benet mnt]# yum install -y mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///mnt/CentOS/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] 没有那个文件或目录: '/mnt/CentOS/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: CentOS-Base. Please verify its path and try again
[root@benet mnt]#
这到底是出了什么状况~
rstz 于 2011-09-19 23:57:37发表:
能不能把fedora15的那一套移到centos来用?很多软件都yum 不到
liaoding2008 于 2011-09-19 18:02:20发表:
路过灌水
jintianguozhao 于 2011-09-09 17:29:55发表:
你mount光盘了吗?
age 于 2011-09-08 13:26:04发表:
yum的实际工作流程是到repo下面的repodata目录读取该repo信息, 最重要的几个文件有
repomd.xml, 这是首先读取的, 它指明了后面几个文件的存放位置, sha校验码. yum需要先读取这个文件, 才知道去哪里找其它的文件
primary.xml.gz. 从名称可以看出, 这是主文件, 它主要记录每个rpm包信息, 以及依赖关系, yum就是靠这个文件去完成依赖性检测.
other.xml.gz. 主要记录rpm包changelog, 及每个author所有做的修改
filelists.xml.gz. 记录每个rpm包包含的文件列表, 大体是rpm -ql的输出结果
假设一个有这样一个路径[code]/media/repo/sl/56/i386/updates/security/repodata[/code]你要指定源baseurl的话, 它只能是这个样子[code]baseurl=/media/repo/sl/56/i386/updates/security[/code]即repodata的上层目录,
wonderall 于 2011-09-08 12:38:29发表:
楼主要是解决了给个话啊!没有也要说下嘛!让大家也了解下
dazzye2727 于 2011-09-08 08:49:58发表:
easy to resolve::yum clean all