码迷,mamicode.com
首页 > 其他好文 > 详细

rhel 6.4 增加光盘为yum repo

时间:2014-07-23 12:39:16      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:des   os   文件   io   re   c   

rhel 6.4 增加光盘为yum repo 

 

版本

LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.4 (Santiago)
Release: 6.4
Codename: Santiago

 

 

修改默认不检查gpg
=================
[root@testdb yum.repos.d]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=0
plugins=1
installonly_limit=3

新增文件
=======
[root@testdb yum.repos.d]# pwd
/etc/yum.repos.d
[root@testdb yum.repos.d]# cat cdrom.repo
[redhatyumcdrom]
name=cdrom
baseurl=file:///mnt/Server/
enabled=1
gpgcheck=0
[root@testdb yum.repos.d]#


挂载光盘到mnt
=============
mount /dev/cdrom /mnt
检查是否生效
===========
[root@testdb yum.repos.d]# yum list

rhel 6.4 增加光盘为yum repo,布布扣,bubuko.com

rhel 6.4 增加光盘为yum repo

标签:des   os   文件   io   re   c   

原文地址:http://www.cnblogs.com/4admin2root/p/3862396.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!