Only 64-bit software packages are installed on 64-bit centos.

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.