分类: 技术

RedHat7快速配置本地YUM源

建立本地源目录

mkdir /mnt/cdrom

挂载REHL7光盘到目录

mount /dev/cdrom /mnt/cdrom/

创建文件/etc/yum.repos.d/rhel7.repo

[rhel7]
name=rhel7
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release
清除yum缓存: yum clean all  
缓存本地yum源中的软件包信息: yum makecache

相关文章

发表新评论