When using Yum to install software packages on 64-bit centos 5.4, if you are not careful, the i386 and x86_64 software versions will be installed simultaneously, for example, the httpd-devel installed below has two versions: i386 and x86_64:
Reference # Yum install httpd-devel
...
Dependencies resolved
================================================= ========================================================== ====< br> package arch version repository size
====================== ========================================================== ==================< br> installing:
httpd-devel i386 2.2.3-31. el5.centos. 2 updates 147 K
httpd-devel x86_64 2.2.3-31. el5.centos. 2 updates 147 K
installing for dependencies:
...
Installing the 32-bit and 64-bit software at the same time is not a mistake and will not cause any problems to the system, but it will waste hard disk space and appear bloated and not clean. If you want to keep a pure 64-bit system and avoid installing a 32-bit package on 64-bit centos, you only need to install the package in yum. add a line in the conf file to filter out i386, and then the i686 software package will be ready:
Reference # vi/etc/yum. conf
[Main]
...
Exclude = *. I? 86
Then, delete the i386/i686 packages that have been followed on the system:
# Yum remove \ *. I \? 86