- 论坛徽章:
- 0
|
原帖由 y_pengming 于 2008-3-31 10:16 发表 ![]()
在CENTOS 5里面,添加删除程序为什么必须得联网啊,我自己有光盘,不想联网升级.有什么办法能让添加删除程序将源定位到光盘呢.请高手指点...
- $ cat /etc/yum.repos.d/CentOS-Media.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-beta
复制代码
-- |
|