優化前提條件:
1、rhel5已經安裝yum
2、yum更新的檔案
3、備份原有配置檔案
#cd /etc/yum.repos.d
# mv mv centos-base.repo centos-base.repo.bak
# mv centos-media.repo centos-media.repo.bak
建立新的配置檔案:
[root@killgoogle ~]# cd /etc/yum.repos.d
[root@killgoogle ~]# touch rhel-debuginfo.repo
[root@killgoogle ~]# touch mirrors-rpmforge
[root@killgoogle ~]# touch rpmforge.repo
往新的配置檔案寫東西:
[root@killgoogle ~]#vi rhel-debuginfo.repo
[base]
name=centos-5 - base
#mirrorlist=
repo=os
#baseurl=
baseurl=
gpgcheck=1
gpgkey=
#released updates
[update]
name=centos-5 - updates
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=centos-5 - addons
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=centos-5 - extras
#mirrorlist=
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=centos-5 - plus
#mirrorlist=
baseurl=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by centos users
[contrib]
name=centos-5 - contrib
#mirrorlist=
baseurl=
gpgcheck=1
enabled=0
gpgkey=
# vi dag.repo
[dag]
name=dag rpm repository for rhel5
baseurl=
enabled=1
gpgcheck=1
gpgkey=
修改第二個配置檔案:
[root@killgoogle ~]vi mirrors-rpmforge #
修改第三個配置檔案:
[root@killgoogle ~]# vi rpmforge.repo
# name: rpmforge rpm repository for red hat enterprise 5 - dag
# url:
[rpmforge]
name = red hat enterprise $releasever - rpmforge.net - dag
#baseurl =
mirrorlist =
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/rpm-gpg-key-rpmforge-dag
gpgcheck = 1
RHEL 5 4 ,配置 yum為本地源
首先將光碟放進光碟機裡。第一步 mount 檢視光碟掛載在哪個地方。例如 我的是 dev hdc。mount t dev hdc mnt rhel 第二步 建立repo檔案 vim etc yum.repos.d rhel local.repo cluster name red hat enterp...
RHEL5 4使用CentOS5 4的yum源
用centos5.4的時候可以方便地使用centos的官方yum源進行軟體安裝與更新,最近由於實驗要求需要用rhel5.4,不註冊就用不了rhel的yum,而直接用rpm太麻煩了,鑑於centos完全相容rhel,所以考慮用centos的源替換rhel的,在網上搜了一下,結合自己的實戰經驗,將過程總...
rhel配置網路yum源
1 確保虛擬機器能夠連線外網 python iniparse 0.4 9.el7.noarch.rpm python urlgrabber 3.10 8.el7.noarch.rpm yum 3.4.3 150.el7.centos.noarch.rpm yum metadata parser 1....