真是太高兴了,找了N久的YUM配置文件终于被抓了出来,现在做好了,和大家分享一下。

   第一步:创建一个新文件夹,并把光盘的内容全部复制到该文件夹内:

   # mkdir /yum

   #cp -rvf /Server/* /yum  (/Server,光盘下Server所在的路径。)

   第二步:安装工具包

   rpm -ivh /Server/createrepo-0.4.11-3.el5.noarch.rpm 

   第三步:生成仓库数据库

   # cd /yum

   # createrepo .  //注意后面的.

   第四步: 查看文件:文件作用同上:

    # ls /yum/repodata/

    filelists.xml.gz other.xml.gz  primary.xml.gz  repomd.xml

第五步:客户端配置

 # cp /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/chenbin.repo

  [root@localhost yum]# vi /etc/yum.repos.d/chenbin.repo

   [rhel-debuginfo]
   name=Red Hat Enterprise Linux $releasever - $basearch - Debug

   baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/      $basearch/Debuginfo/

   enabled=1
   gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
   WQ保存退出
                                                  

   #yum clean all

   至此,yum安装完成,但使用这种方法安装后在应用程序-添加删除软件的列表是空的,但使用YUM安装软件是可以的。

   #yum  install /Server/Httpd-2.2.3-22.el5.i386.rpm  /x86

  #yum  remove httpd