虚拟机下Centos本地光盘yum源配置
来源:互联网 发布:韩雪网络直播视频 编辑:程序博客网 时间:2024/05/19 09:12
1.虚拟机中安装的Centos,只需将安装包ISO文件挂载到/mnt下面
mount dev/cdrom /mnt/Centos
2.进入到 /etc/yum.repos.d/ ,该目录下包含了四个文件:
-rw-r--r--. 1 root root 1926 11月 27 2013 CentOS-Base.repo1-rw-r--r--. 1 root root 638 11月 27 2013 CentOS-Debuginfo.repo1-rw-r--r--. 1 root root 628 3月 12 16:11 CentOS-Media.repo-rw-r--r--. 1 root root 3664 11月 27 2013 CentOS-Vault.repo3.将 CentOS-Base.repo和CentOS-Debuginfo.repo两个文件改名,绕过网络安装:
[root@sl yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repose_bak[root@sl yum.repos.d]# mv CentOS-Debuginfo.repo CentOS-Debuginfo.repo_bak4.编辑文件CentOS-Media.repo:(也可以自己新增一个repo文件,more用于查看,使用vi进行编辑)
5.测试yum是否配置成功
[root@sl yum.repos.d]# yum listLoaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfileInstalled PackagesConsoleKit.x86_64 0.4.1-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4ConsoleKit-libs.x86_64 0.4.1-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4MAKEDEV.x86_64 3.24-6.el6 @anaconda-CentOS-201303020151.x86_64/6.4MySQL-python.x86_64 1.2.3-0.3.c1.1.el6 @anaconda-CentOS-201303020151.x86_64/6.4PyGreSQL.x86_64 3.8.1-2.el6 @anaconda-CentOS-201303020151.x86_64/6.4SDL.x86_64 1.2.14-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4TurboGears2.noarch 2.0.3-4.el6 @anaconda-CentOS-201303020151.x86_64/6.4abrt.x86_64 2.0.8-15.el6.centos @anaconda-CentOS-201303020151.x86_more.........
6.清除yum缓存:
[root@sl yum.repos.d]# yum clean allLoaded plugins: fastestmirror, securityCleaning repos:Cleaning up EverythingCleaning up list of fastest mirrors
转自并修改于:http://www.cnblogs.com/shenliang123/p/3829044.html
0 0
- 虚拟机下Centos本地光盘yum源配置
- CentOS配置光盘yum源
- CentOS使用本地光盘做yum源
- CentOS搭建本地光盘YUM源
- Centos下简单配置本地YUM源
- CentOS 下yum配置本地源
- Centos下yum本地源的配置
- vmware下centos配置本地yum源
- CentOS下yum本地配置
- redhat6本地光盘yum源配置
- CentOS 7下配置本地yum源及yum客户端
- centos yum源配置为光盘
- Centos配置安装光盘为yum源
- CentOS配置本地YUM源
- centos 配置本地yum源
- centos 配置本地yum源
- centos 配置本地yum源
- CentOS配置本地yum源
- favicon出现的问题
- HDU 4155 Eliminate the Conflict(2-SAT)
- 动态分配线程数目-保证系统负载
- 删除链表中值为value的节点
- java获取当前时间是星期几
- 虚拟机下Centos本地光盘yum源配置
- http请求本地文件,路径中含有空格的处理 QT
- JDBC--学习笔记(一)
- jsp实验3.(1)(2)表单内容的提交和获取
- 基于88E6095的链路冗余协议开发(二)
- (八)React Native实现调用android原生java方法并实现广播的发送和接受
- 类之间的关系-更合理的架构
- js 首次进入页面刷新一次
- Gson时间格式报错