首页 > 其他 > 详细

rhel 6.4 增加光盘为yum repo

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!