zoukankan      html  css  js  c++  java
  • 在64位的 CentOS 上只安装64位的软件包

    在 64位版本的 CentOS 5.4 上使用 yum 安装软件包的时候如果不小心的话会同时安装 i386 和 x86_64 版本的软件,如下面安装的 httpd-devel 就有 i386 和 x86_64 两个版本:

    引用
    # yum install httpd-devel
    ...
    Dependencies Resolved

    ================================================================================
    Package              Arch       Version                      Repository   Size
    ================================================================================
    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:
    ...


    同时安装32位和64位版本的软件虽然不是什么错,也不会对系统造成什么问题,但是这样会浪费硬盘空间,而且显得系统臃肿、不干净。如果想要保持一个纯的64位系统、在64位 CentOS 上避免安装32位软件包的话很容易,只需要在 yum.conf 加上一行过滤掉 i386, i686的软件包就可以了:

    引用
    # vi /etc/yum.conf
    [main]
    ...
    exclude=*.i?86


    然后删除系统上已经按照的 i386/i686 包:

     # yum remove \*.i\?86

  • 相关阅读:
    pytest.4.Fixture
    pytest.3.Assert
    pytest.2.运行多个文件
    [LeetCode 378.] Kth Smallest Element in a Sorted Matrix
    priority_queue 自定义 comparator
    原地调整法查找数组元素
    [LeetCode 436.] Find Right Interval
    [LeetCode 611.] Valid Triangle Number
    二叉树Morris遍历
    用户态IO:DPDK
  • 原文地址:https://www.cnblogs.com/chinacloud/p/1887498.html
Copyright © 2011-2022 走看看