以前没有用过这个命令,最近yum安装下载比较慢,就想着搭建一个本地yum源,突然想到这个命令配置repo比较简单,记录下
首先下载
yum install -y yum-utils
这个命令在yum-utils包里,还有,,我把CentOS镜像挂载到了虚拟机/mnt/cdrom目录,,
现在执行:
yum-config-manager --add-repo file:/mnt/cdrom/
O了