CentOS如何将DVD设置为默认yum源

admin 2015-11-11 0 次浏览


相关推荐: centos源为什么许多都删了  centos6.8更换yum源  centos7修改yum源本地  centos配置yum源  CentOS7默认采用的文件系统为  centos更换yum源  centos改源  centos修改yum源  centosdvd版  centosyum源  centos更换源  centos修改镜像源  centos光盘yum源  centos7光盘默认路径  centosdvd和everything  centos光盘源  centos7默认  centosdvdminimal  centos7光盘做yum源  centos设置光盘源  centos如何配置光盘做为yum源  centos修改yum源为本地yum  centos8怎么设置本地安装源  centos本地yum源配置  centosdvdboot  centos7更换yum源  centos如何配置光盘作为yum源  centos本地yum源  centosdvd1  centosdvdeverything  centos7光盘作为本地源 

我们都知道yum是CentOS系统中的软件包管理器,用于软件的下载与安装,有时因为某些原因,需要将DVD作为默认yum源,以便DVD中软件的下载安装,下面小编就给大家介绍下CentOS如何建DVD设置为默认yum源。

1、为DVD创建一个挂载目录

[root@localhost ~]# mkdir /media/CentOS

2、在Linux下挂载CentOS DVD(虚拟机挂载DVD不说了,应该都会)

[root@localhost ~]# mount -t auto /dev/cdrom /media/CentOS

请关闭浏览器的畅读模式或者取消屏蔽JavaScript的正常运行,避免出现内容显示不全或者段落错乱。

原网页地址:https://www.hongqiaozy.com/xuexi/317973.html