利用 CentOS 的yum实现RHEL4的自动更新
1.下载并安装yum-2.2.0-1.centos4.2.noarch.rpm文件,下载地址为:
http://apt.bioxray.dk/rhel/el4/i386/RPM ... noarch.rpm
2.修改或建立/etc/yum.repos.d/CentOS-Base.repo为如下内容:
[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/os/$basearch/
gpgcheck=1
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/updates/$basearch/
gpgcheck=1
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/addons/$basearch/
gpgcheck=1
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.0/extras/$basearch/
gpgcheck=1
3修改或建立/etc/yum.repos.d/dag.repo为如下内容:
[dag]
name=Dag RPM Repository for RHEL4
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el4/en/$basearch/dag/
enabled=1
gpgcheck=1
3.导入CentOS4.0:RHEL4的dag
rpm --import http://ftp.riken.jp/Linux/dag/packages/ ... EY.dag.txt
4.运行update:
yum update
5.升级:
yum upgrade
6.试试这个:
yum install mplayer