mount //10.7.21.25/linux -o username=Administrator,[email protected] /mnt/
10.7.21.25是window的地址 Linux目录是window上的共享文件 username password 是window的帐号密码 /mnt/ 是挂载的Linux服务器的位置。
把Linux的iso镜像文件在windows本地用rar解压并配置YUM
[[email protected] ~]# mount //10.7.21.25/linux -o username=Administrator,[email protected] /mnt/
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]# ls
rhel-source.repo
[[email protected] yum.repos.d]# rm -rf rhel-source.repo
[[email protected] yum.repos.d]# vim iso.repo
[Server]
name=Server
baseurl=file:///mnt/rhel-server-6.3-x86_64-dvd/Server/
enabled=1
gpgcheck=0[[email protected] yum.repos.d]# yum update
原文:http://6864153.blog.51cto.com/6854153/1639008