1
2
| #mkdir /media/rhel #mount /dev/cdrom /media/rhel |
1
2
3
| #cd /etc/yum.repos.d/ #touch rhel-media.repo #vi rhel-media.repo |
1
2
3
4
5
6
| [rhel-media] name=Red Hat Enterprise Linux 6.2 #自定义名称 baseurl= file : ///media/rhel #本地光盘挂载路径 enabled=1 #启用yum源,0为不启用,1为启用 gpgcheck=1 #检查GPG-KEY,0为不检查,1为检查 gpgkey= file : ///media/rhel/RPM-GPG-KEY-redhat-release #GPG-KEY路径 |
1
| #yum clean all #清除yum缓存
執行yum install PHP
執行yum install python
|