- 论坛徽章:
- 0
|
根据文档,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/ |
|