RedHat系统
1、挂载镜像光盘
[root@localhost ~]# mount /dev/sr0 /media/cdrom/
2、创建本地yum源仓库
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# vim yum.repo
[RedHat_server]
name=RedHat repo
baseurl=file:///media/cdrom
enabled=1
gpgcheck=0
gpgkey=file:///media/cdrom/RPM-GPG-KEY-redhat-release
3、更新和查看yum源
[root@localhost yum.repos.d]# yum clean all
[root@localhost yum.repos.d]# yum list all