1、将CentOS的Everything镜像文件复制到 /usr/local/src目录下
2、添加 /etc/yum.repos.d/localSource.repo ,文件内容如下:
[localSource] name=localSource baseurl=file:///mnt/localSource enable=1 gpgcheck=0
3、打开/etc/fstab文件,加入:
/usr/local/src/CentOS-7.0-1406-x86_64-Everything.iso /mnt/localSource iso9660 defaults,ro,loop 0 0
4、root运行:yum clean all; yum makecache
时间: 2024-12-29 11:20:30