Step1. 建立掛載點:
# mkdir -p /mnt/iso/1Step2. 掛載ISO檔:
# mount -o loop /mnt/nfs/CentOS-5.4*.iso /mnt/iso/1Step3. 安裝createrepo套件:
# yum install createrepo
Step4. 產生來源repository:
# cd /mnt/isoStep5. 建立新repository設定檔:
# createrepo .
Step6. 準備升級:# vi /etc/yum.repos.d/centos54.repo
[CentOS5.4 Repository]
baseurl=file:///mnt/iso
enabled=1
先將原本的repos全部rename成xxx.repo.bak成功的話就可看到下圖顯示準備更新成CentOS5.4的套件:
# yum clean all
# yum update
No comments:
Post a Comment