当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > redhat linux 通过yum自动升级

Unix/Linux
最新FreeBSD7.0下载
FreeBSD7.0编译安装nginx+php+mysql
FreeBSD下如何增加静态路由的方法
如何让FreeBSD上运行Windows软件
UNIX让普通用户具备关机权限的操作方法
FreeBSD6.2上搭建apache2.2.4+mysql5.1.7+php5.2.1+phpmyadmin
“incorrect super block” FreeBSD挂载CDROM时报错误的解决方法
FreeBSD操作系统下修改ip地址及捆定多个IP地址
FreeBSD的一些简单使用技巧
BSD系统让某个用户登陆就关机的办法
如何查看Freebsd 查看硬件信息
在Linux和FreeBSD下如何使用U盘
FreeBSD常用命令和packages使用方法讲解
FreeBSD常用命令--ports使用方法讲解
FreeBSD学习指南
FreeBSD在安装ports时时间过长的解决方法
FreeBSD实现3D桌面
FreeBSD下如何安装ports的方法
FREEBSD让root用户远程ssh登录的方法
FreeBSD6.0中文安装全过程

Unix/Linux 中的 redhat linux 通过yum自动升级


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 74 ::
收藏到网摘: n/a

第一种方法:
yum源来自chinalinuxpub.com,用的是centos包,
下载地址:  http://www.chinalinuxpub.com/yum.tgz
安装:
tar zxvf yum.tgz
cd yum
rpm -ivh *.rpm

rm -rf /etc/yum.repos.d/CentOS-Base.repo
vi /etc/yum.repos.d/as4-update.repo
加入:
#released updates
[update]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/updates/4AS/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub

vi /etc/yum.repos.d/as4-base.repo
加入:
#released base
[base]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/os/i***/RedHat/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterprise/RPM-GPG-KEY-linuxpub

然后就可以正常使用yum了.

第二种方法:利用CentOS 的yum库升级RHEL AS4
1.下载并安装yum-2.4.0-1.centos4.noarch.rpm文件,下载地址为:
ftp://ftp.pbone.net/mirror/ftp.centos.org/4.5/os/alpha/CentOS/RPMS/yum-2.4.2-1.centos4.noarch.rpm

2.修改或建立/etc/yum.repos.d/CentOS-Base.repo为如下内容:
[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.5/os/$basearch/
gpgcheck=1

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.5/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.5/addons/$basearch/
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.riken.jp/Linux/caos/centos/4.5/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
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt

4.运行update:
yum update

5.升级:
yum upgrade

6.安装其它软件,例如:
yum install mplayer