RHEL6.3配置本地yum源
2014-04-25 22:37
204 查看
首先配置rhel6.3的yum本地源:
1.首先挂在cdrom到本地目录,一般都是/media或/mnt
mount /dev/cdrom /mnt
2.开始配置rhel源文件
rhel6.3默认的yum更新配置文件在/etc/yum.repos.d/目录下,有两个仓库配置文件:
1.packagekit-media.repo:用于设置远程仓库
2.rhel-source.repo:用于设置本地仓库
有两种设置本地源的方法
1.将/etc/yum.repos.d/rhel-source.repo文件改名为rhel-source.repo.bak
然后添加如下内容:
[DVDROM]
name=myyum
baseurl=file:///mnt/
gpgcheck=0
enable1
3.配置完成
可以通过yum更新软件
1.将光驱的内容拷贝到一个目录内(/root/yumsource/mnt)
2.创建配置文件
touch /etc/yum.repos.d/rhel-debuginfo.repo
内容如下:
[DVDROM]
name=myyum
baseurl=file:///root/yumsource/mnt
gpgcheck=0 #指定是否检查软件包的GPG签名
enable=1
3.修改/usr/lib/python2.6/site-packages/yum/yumRepo.py
将remote=url+‘/’+relative种的‘/’修成为你的本地源的目录yumsource
注:vim下查找关键字命令,在命令行模式下:/keyword
1.首先挂在cdrom到本地目录,一般都是/media或/mnt
mount /dev/cdrom /mnt
2.开始配置rhel源文件
rhel6.3默认的yum更新配置文件在/etc/yum.repos.d/目录下,有两个仓库配置文件:
1.packagekit-media.repo:用于设置远程仓库
2.rhel-source.repo:用于设置本地仓库
有两种设置本地源的方法
1.将/etc/yum.repos.d/rhel-source.repo文件改名为rhel-source.repo.bak
然后添加如下内容:
[DVDROM]
name=myyum
baseurl=file:///mnt/
gpgcheck=0
enable1
3.配置完成
可以通过yum更新软件
1.将光驱的内容拷贝到一个目录内(/root/yumsource/mnt)
2.创建配置文件
touch /etc/yum.repos.d/rhel-debuginfo.repo
内容如下:
[DVDROM]
name=myyum
baseurl=file:///root/yumsource/mnt
gpgcheck=0 #指定是否检查软件包的GPG签名
enable=1
3.修改/usr/lib/python2.6/site-packages/yum/yumRepo.py
将remote=url+‘/’+relative种的‘/’修成为你的本地源的目录yumsource
注:vim下查找关键字命令,在命令行模式下:/keyword
相关文章推荐
- redhat6.3系统下的kscope1.6.2安装——RHEL6.3 本地创建YUM源
- RHEL7 本地yum源配置
- centos6配置本地光盘yum源、rhel7修改网卡名称为eth0
- rhel7系统配置本地yum源与本地网络yum源
- RHEL6.1配置光盘为本地yum源
- LInux学习笔记---RHEL6配置本地yum源
- RHEL6.4配置光盘为本地yum源
- RHEL6.1配置光盘为本地yum源
- 配置光盘为本地yum源(rhel6.1)
- RHEL6.1配置光盘为本地yum源
- RHEL6.2配置本地yum源和第三方源
- 配置本地yum源安装RHEL6.x图形化界面
- RHEL6.5服务器本地yum源配置
- RHEL7.2和RHEL6.5配置网络yum源和本地yum源
- RHEL6 配置本地YUM源
- RHEL6.2服务器本地yum源配置
- [Linux] RHEL配置本地YUM源
- RHEL 6.2配置本地yum源
- rhel6配置本地yum源
- RHEL6.1配置光盘为本地yum源