文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>更新yum库

更新yum库

时间:2009-07-27  来源:静静的呼吸

先备份 cp /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo.bak
# vi /etc/yum.repos.d/CentOS-Base.repo
用下面的这段话替换掉原来的 # cat  file > /dev/ # cat /dev/file > /etc/yum.repos.d/CentOS-Base.repo 以下就是file的内容
[base]
name=CentOS-5.0 - Base
baseurl=http://mirror.be10.com/centos/5.0/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[update]
name=CentOS-5.0 - Updates
baseurl=http://mirror.be10.com/centos/5.0/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-5.0 - Addons
baseurl=http://mirror.be10.com/centos/5.0/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5.0 - Extras
baseurl=http://mirror.be10.com/centos/5.0/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.0 - Plus
baseurl=http://mirror.be10.com/centos/5.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5.0 - Contrib
baseurl=http://mirror.be10.com/centos/5.0/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#packages in testing
[testing]
name=CentOS-5.0 - Testing
baseurl=http://mirror.be10.com/centos/5.0/testing/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
然后更新一次系统,并将yum设置为自启动,让其即时自动为系统更新。
# yum -y update
# chkconfig yum on
# /etc/rc.d/init.d/yum start

相关阅读 更多 +
排行榜 更多 +
王权陨落破解版内置菜单下载

王权陨落破解版内置菜单下载

策略塔防 下载
漫威秘法狂潮手游下载

漫威秘法狂潮手游下载

策略塔防 下载
狙击手的反击最新版

狙击手的反击最新版

飞行射击 下载