1.安装VMware Player
2.准备ISO镜像文件
3.从ISO文件启动虚拟机
4.配置YUM源:
(Debian的话,不要配置apt源,这里我用的是redhat,所以要配置yum源)
cd /etc/yum.repos.d
vim rhel-source.repo
[code=""]
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.163.com/centos/6.5/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.163.com/centos/6.5/updates/$basearch
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.163.com/centos/6.5/extras/$basearch
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-CentOS-6
[centosplus]
name=CentOS-$Releasever - Plus
baseurl=http://mirrors.163.com/centos/6.5/centosplus/$basearch
gpgcheck=1
enabled=0
[/code]
然后在执行yum update更新源,之后就可以安装需要的包了。
2.准备ISO镜像文件
3.从ISO文件启动虚拟机
4.配置YUM源:
(Debian的话,不要配置apt源,这里我用的是redhat,所以要配置yum源)
cd /etc/yum.repos.d
vim rhel-source.repo
[code=""]
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.163.com/centos/6.5/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.163.com/centos/6.5/updates/$basearch
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.163.com/centos/6.5/extras/$basearch
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-CentOS-6
[centosplus]
name=CentOS-$Releasever - Plus
baseurl=http://mirrors.163.com/centos/6.5/centosplus/$basearch
gpgcheck=1
enabled=0
[/code]
然后在执行yum update更新源,之后就可以安装需要的包了。