我搞了一台虚拟机器centos5
奇怪机器执行下面的俄命令
 yum install mysql-server
就可以安装数据库 
     (想知道这个是如何在本os里设置 的    --直觉这个绝对是设置了的  
我另外一台机器上的红帽3却不能这样作 

解决方案 »

  1.   

    yum源
    在 /etc /yum.repos.d:/
    你自己定一点 my.repo
    # This repo is used to mount the default locations for a CDROM / DVD on
    #  CentOS-5.  You can use this repo and yum to install items directly off the
    #  DVD ISO that we release.
    #
    # To use this repo, put in your DVD and use it with the other repos too:
    #  yum --enablerepo=c5-media [command]
    #  
    # or for ONLY the media repo, do this:
    #
    #  yum --disablerepo=\* --enablerepo=c5-media [command][Base]
    name=CentOS-$releasever - Media
    baseurl=http://10.0.4.1/pxe/
    gpgcheck=0
    enabled=1
    gpgkey=file:///etc/RPM-GPG-KEY-CentOS-5这里定义了安装文件的db的地址
    奇怪 为身没有人回答