A workaround for installing both 32-bit and 64-bit packages on CentOS 5 using Yum

Source: Internet
Author: User

When using the Yum Online installation package on CentOS, sometimes 32-bit and 64-bit packages are installed at the same time. It also updates the two copies at the time of update.

In fact, let Yum install only 64-bit packages, just add a exclude option in/etc/yum.conf:

[Main]cachedir=/var/cache/yumkeepcache=0Plugins=1... Exclude=*.i?  the

The Exclude option supports regular expressions, and *.i?86 can be used to filter out 32bit packets such as i386,i686.

If you want to remove a 32bit package that has already been installed, execute the following command:

Yum remove \*.i\?  the

If you want to install a 32-bit package on a 64-bit operating system, you can comment this sentence exclude again/etc/yum.conf

A workaround for installing both 32-bit and 64-bit packages on CentOS 5 using Yum

Related Article

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.