close
實驗環境
CentOS 5.5:(nodea: 192.168.0.111) _增加外掛以下幾個載點
義守大學FTP: 本地端穩定載點,隨發行版更新
EPEL Repository: 套件數不少,更新套件率低
remi: 持續更新軟件或許是發行版未更新套件: Ex: PHP 5.3 ....等
將Repo 設置為本地端(Taiwan)載點,將可增加軟件安裝與更新(UPDATE)速度)載點
將Repo 設置為本地端(Taiwan)載點,將可增加軟件安裝與更新(UPDATE)速度)載點
(1.) 編輯義守大學Repo
mkdir /yumtemp
mv /etc/yum.repos.d/CentOS5-*.repo /yumtemp
#將預設安裝的repo備份至/yumtemp資料夾
#將預設安裝的repo備份至/yumtemp資料夾
vi /etc/yum.repos.d/centos55 #編輯ok後請存檔
[centos55] #centos55 為repo定義名稱可以更改
name=yum labs.
baseurl=ftp://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/os/$basearch/
enable=1
gpcheck=1
gpgkey=ftp://ftp.isu.edu.tw/pub/Linux/CentOS/RPM-GPG-KEY-CentOS-5
[centos55-updates] #centos55 為repo定義名稱可以更改
name=yum labs updates.
baseurl=ftp://ftp.isu.edu.tw/pub/Linux/CentOS/$releasever/updates/$basearch/
enable=1
gpcheck=1
gpgkey=ftp://ftp.isu.edu.tw/pub/Linux/CentOS/RPM-GPG-KEY-CentOS-5

shell> yum clean all #清除原先更新暫存資料
shell> yum -y check-update #檢查套件更新
測試義守大學FTP載點: yum -y install lftp
#測試從centos55 這個Repository(義守大學) 安裝lftp套件ok

(2)安裝EPL套件Repository #以x86版本為例
shell> wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
#下載repo安裝檔案

測試義守大學FTP載點: yum -y install lftp
#測試從centos55 這個Repository(義守大學) 安裝lftp套件ok

(2)安裝EPL套件Repository #以x86版本為例
shell> wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
#下載repo安裝檔案
shell> rpm -ivh epel-release-5-3.noarch.rpm #安裝該repo,用-Uvh更新套件亦可

安裝OK後,我們可以在/etc/yum/repos.d/ 下看到 epel.repo , epel-testing.repo

安裝OK後,我們可以在/etc/yum/repos.d/ 下看到 epel.repo , epel-testing.repo

(3.)安裝REMI套件Repository #以x86版本為例
shell> wget http://rpms.famillecollet.com/el5.i386/remi-release-5-8.el5.remi.noarch.rpm
#下載repo安裝檔案筆著目前安裝最新版本
#下載repo安裝檔案筆著目前安裝最新版本
shell> rpm -ivh remi-release-5-8.el5.remi.noarch.rpm
#安裝該repo,用Uvh更新套件亦可
同樣的安裝OK後,我們可以在/etc/yum/repos.d/ 下看到 remi.repo
#remi 套件更新率較高,KEYNES極力推薦此儲存庫
#安裝該repo,用Uvh更新套件亦可

同樣的安裝OK後,我們可以在/etc/yum/repos.d/ 下看到 remi.repo
#remi 套件更新率較高,KEYNES極力推薦此儲存庫

測試REMI載點:
shell> yum -y --enablerepo=remi install php
#測試從remi這個Repository(remi-test) 安裝php 5.3套件ok

於 [Centos55] 底下增設優先權 Prioority = 1 , 亦可依序設定Prioority = 2, Prioority = 3.......設計

最後確定yum-priorities是否啟動
#測試從remi這個Repository(remi-test) 安裝php 5.3套件ok

於 [Centos55] 底下增設優先權 Prioority = 1 , 亦可依序設定Prioority = 2, Prioority = 3.......設計

最後確定yum-priorities是否啟動
enabled=1 #確定enabled=1
p

(5.) The program yum-complete-transaction is found in the yum-utills package
警告訊息的解決方法(利用yum安裝時偶爾產生)
安裝 yum-complete-transaction 套件:
shell> yum-complete-transaction –cleanup-only
#運行yum-complete-transaction 清除未完成程序
警告訊息的解決方法(利用yum安裝時偶爾產生)

安裝 yum-complete-transaction 套件:
yum install yum-utils


shell> yum-complete-transaction –cleanup-only
#運行yum-complete-transaction 清除未完成程序

shell> yum-complete-transaction package-cleanup -dupes
#清除重複的程序即可
#清除重複的程序即可
經以上執行程序後,下次利用yum安裝套件時,就不會再跳出 yum-complete-transaction
警訊(此警訊很會拖延套件安裝時間)
警訊(此警訊很會拖延套件安裝時間)

有未完成的yum 程序,建議運行 yum-complete-transaction 命令清除。
全站熱搜