Redhat 6.3 yum 本地源配置

1.挂载系统安装盘

2.复制安装盘

mkdir /mnt/iso

cp -r /media/RHEL_6.3\ x86_64\ Disc\ 1/* /mnt/iso

3.配置yum源

备份

cp rhel-source.repo rhel-source.repo.bak

修改

mv rhel-source.repo iso-source.repo

vim iso-source.repo

[iso-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///mnt/iso
enabled=1
gpgcheck=0
gpgkey=file:///mnt/iso/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

刷新yum

[root@js yum.repos.d]# yum clean all
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Cleaning repos: InstallMedia iso-source
Cleaning up Everything
[root@js yum.repos.d]# yum makecache
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
iso-source                                                     | 4.0 kB     00:00 ... 
iso-source/filelists_db                                        | 3.7 MB     00:00 ... 
iso-source/primary_db                                          | 3.1 MB     00:00 ... 
iso-source/other_db                                            | 1.6 MB     00:00 ... 
iso-source/group_gz                                            | 204 kB     00:00 ... 
Metadata Cache Created

OK

转载于:https://www.cnblogs.com/jusonsummer/p/4842508.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值