我們擁有客製化服務,遮陽隔音防熱多功能,天熱不心煩節能新選擇
免費到府估價,價格公道
惡魔搜尋引擎多年油漆相關服務經驗,專業的油漆工程
裝潢設計之首選,免費估價。

首頁  •  tw 論壇 • 軟體討論     • 

[教學]fedora6 Yum更新 站台遷移設定教學

房東:小蛙
發表時間:2014-02-25
[檢舉]


請確定系統中已安裝了PHP的套件


[root@linux ~]# rpm -qa |grep php
php-gd-5.1.6-3.4.fc6
php-pdo-5.1.6-3.4.fc6
php-bcmath-5.1.6-3.4.fc6
php-devel-5.1.6-3.4.fc6
php-common-5.1.6-3.4.fc6
php-5.1.6-3.4.fc6
php-Smarty-2.6.13-1.fc6
php-ldap-5.1.6-3.4.fc6
php-xml-5.1.6-3.4.fc6
php-cli-5.1.6-3.4.fc6



修改yum設定

/etc/yum.repos.d/fedora-core.repo
/etc/yum.repos.d/fedora-updates.repo
/etc/yum.repos.d/fedora-extras.repo

==============================================
/etc/yum.repos.d/fedora-core.repo

[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
#barchives.fedoraproject.orgaseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


==============================================
/etc/yum.repos.d/fedora-updates.repo

[updates]
name=Fedora Core $releasever - $basearch - Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fc$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-debuginfo]
name=Fedora Core $releasever - $basearch - Updates - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/debug/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-fc$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-source]
name=Fedora Core $releasever - Updates Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/SRPMS/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-fc$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora


==============================================
/etc/yum.repos.d/fedora-extras.repo

[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/extras/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-$releasever&arch=$basearch
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-debuginfo]
name=Fedora Extras $releasever - $basearch - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/debug/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/extras/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-debug-$releasever&arch=$basearch
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-source]
name=Fedora Extras $releasever - Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/SRPMS/
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/extras/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-source-$releasever&arch=$basearch
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1



  • 贊助網站       

    油漆粉刷工程
    優質油漆師傅,專業的油漆工程,免費諮詢刷油漆大小事,值得您信賴!
    優潔電話清潔公司
    清潔公司, 電話清潔, 清潔保養, 電腦清潔, 清潔消毒, 清潔服務, 消毒服務
    優潔清潔公司
    夏季清潔讓您煥然一新,專業清潔團隊,寶貝家具不受損,輕鬆擁有乾淨居家,守護您的健康環境

  • 1 樓住戶:jeff
    發表時間:2015-06-21
    [檢舉]


    yum更新套件安裝來源
    YUM - Yellowdog Updater Modified
    YUM 官方網站:http://linux.duke.edu/projects/yum/

    修改設定檔:

    cd /etc/yum.repos.d/
    cp fedora-core.repo fedora-core.repo.bak
    vi fedora-core.repo

    [core]
    name=Fedora Core $releasever - $basearch
    baseurl=ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/$releasever/$basearch/os/
    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
    #mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

    cp fedora-updates.repo fedora-updates.repo.bak
    vi fedora-updates.repo

    [updates]
    name=Fedora Core $releasever - $basearch - Updates
    baseurl=ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/updates/$releasever/$basearch/
    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
    #mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

    cp fedora-extras.repo fedora-extras.repo.bak
    vi fedora-extras.repo

    [extras]
    name=Fedora Extras $releasever - $basearch
    baseurl=ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/extras/$releasever/$basearch/
    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releas子ever/$basearch/
    #mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
    enabled=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
    gpgcheck=1

    更新:yum -y update

    注意:若上面指令無法正常執行的話,
    1. 仔細檢查上面三個設定檔有沒有錯誤
    2. 執行「lftp apt.nc.hcc.edu.tw」,測試 ftp 連線是否正常
    3. 下「yum clean all」指令,清掉 yum 在「/var/cache/yum」內的暫存檔案
    4. 再次執行「yum -y update」

    2 樓住戶:jeff
    發表時間:2015-06-21
    [檢舉]

    yum 下載
    http://rpm.pbone.net/index.php3?stat=3&search=yum&srodzaj=3



     共 2 人回應  選擇頁數 【第1 頁】 

    姓名:
    佈告內容: