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

admin 2015-11-11 0 次浏览


相关推荐: centosdvd1  centos7光盘作为本地源  centos光盘源  centosdvdeverything  centosdvd版  centos7修改yum源本地  centos如何配置光盘做为yum源  centosdvd和everything  centos如何配置光盘作为yum源  centos修改yum源为本地yum  centosdvdminimal  centos改源  centosdvdboot  centos7光盘做yum源  centos6.8更换yum源  centos设置光盘源  centos光盘yum源  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.potelypower.com/xuexi/318043.html