Chinaunix
标题:
模仿了一个repo, 结果无法解决目录中的空格问题,怎么办?求教!
[打印本页]
作者:
逆向工程
时间:
2010-09-30 17:48
标题:
模仿了一个repo, 结果无法解决目录中的空格问题,怎么办?求教!
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
我把CentOS替换成一个有空格的目录名,写成 rhel\ DVD, 加了反斜杠,还是不行,怎么办?求教
作者:
一路征程一路笑
时间:
2010-09-30 17:50
提示:
作者被禁止或删除 内容自动屏蔽
作者:
cst05001
时间:
2010-09-30 22:10
哥们……用转义符~~
baseurl=file:/media/Red\ Hat\ Enterprise\ Linux
复制代码
这样
作者:
rainsome
时间:
2010-10-01 10:13
用引号
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2