免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 840 | 回复: 0
打印 上一主题 下一主题

linux快速升级 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-04-01 16:45 |只看该作者 |倒序浏览
根据文档,yum支持redhat,suse,后面还有一个yum的gui版本,支持fedora.

1.安装yum
http://linux.duke.edu/projects/yum/download.ptml
#rpm -i yum-*.noarch.rpm

2.配置 /etc/yum.conf
#cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1

[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://update.yourserver.com/rhel-3as-i386-rpm/


[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://update.yourserver.com/rhel-3as-i386-u4-rpm/

另外一个例子
#cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1


[base]
name=Red Hat Linux - Base
baseurl=file://localhost/tmp/common/AS3.0_u4/RedHat/RPMS


[updates]
name=Red Hat Linux - Updates
baseurl=file://localhost/tmp/common/AS3.0_u4/RedHat/Updates

yum还支持ftp。

3.升级
至少需要600M空间
#yum clean
#yum update

4.服务器设置(因为内部有设置好的服务器,以下未经过测试,个人觉得使用ftp会不会更简单,如果支持nfs就更爽乐)
如果只有一台机器升级,加上网速快,直接上redhat找一个mirror就可以乐

The process of making updates to Red Hat RHEL 3.0 available to "yum" clients
involves a couple of steps, which could be summarized as follows:

  - Extracting all of the ".rpm" packages from the .iso images provided by
    Red Hat.
  - Running the "yum-arch" tool over the directory containing all of the
    ".rpm" packages, to generate a set of headers for the "yum" client to use.

In more detail, taking RHEL 3.0 U3 as an example:

1. Download each of the Red Hat RHEL 3.0 Update 2 iso disks,
   and mount each of them locally by means of a loopback mount.
   For example, for RHEL 3.0 U3 CD2, it would be as follows:

     mount -t iso9660 ./rhel-3-U3-i386-as-disc2.iso /mnt/cdrom -o ro,loop

2. Copy the ".rpm" files from each of the /mnt/cdrom/RedHat/RPMS directories
   on each of the CDs to a directory that you will serve via your apache
   server e.g.

     /var/www/html/RHAS

   This is the default location for the apache http server on RHEL 3.0,
   so you wouldn't need any httpd.conf changes if you use this directory.

3. Change to the directory /var/www/html/RHAS containing the packages from
   all of the CDs, and run the command:

     yum-arch /var/www/html/RHAS

   This will generate a list of rpm headers that is used to determine
   what needs to be installed when a "yum" client goes to look for updates.

4. Start up your apache http server using:
     /etc/init.d/httpd restart

http://cobind.com/yumgui.html
http://fedoranews.org/tchung/gyum/
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP