1.centos5.3最小化安装

2.安装完后安装apache,但出现问题

[root@wh CentOS]# rpm -ivh httpd-2.2.3-22.el5.centos.i386.rpm --test
warning: httpd-2.2.3-22.el5.centos.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
/etc/mime.types is needed by httpd-2.2.3-22.el5.centos.i386


缺少文件mime.types,不知道是怎么回事

 

解决:

我用yum找了一下依赖关系,找到那个没有安装的包,如下:
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-22.el5.centos set to be updated
filelists.xml.gz | 2.8 MB 00:00
--> Processing Dependency: /etc/mime.types for package: httpd
--> Running transaction check
---> Package mailcap.noarch 0:2.1.23-1.fc6 set to be updated
--> Finished Dependency Resolution

原来是要先安装mailcap这个东西,唉!
我又换回RPM,先安装了mailcap,然后再安装httpd就好了
希望有和我一样遇到这个问题的朋友得到答案。

 

rpm -ivh mailcap按TAB键  装完再装httpd就能安装上了。