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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM