i686 和 x86_64 包有什么区别?

MUY*_*ium 44 yum package-management glibc cpu-architecture

我有一台带有 glibc i686 和 x86_64 的机器,还有一个非常烦人的 glibc 问题。

在一台计算机上安装两个同名的库是否正常?我怎么知道执行的是哪个库?

直到最近,我才相信 x86_64 是 i686。好吧,我一定是弄错了,但为什么呢?

    [root@machin ~]# yum info glibc
    Loaded plugins: rhnplugin, security
    This system is not registered with RHN.
    RHN support will be disabled.
    Excluding Packages in global exclude list
    Finished
    Installed Packages
    Name       : glibc
    Arch       : i686
    Version    : 2.5
    Release    : 42
    Size       : 12 M
    Repo       : installed
    Summary    : The GNU libc libraries.
    License    : LGPL
    Description: The glibc package contains standard libraries which are used by
               : multiple programs on the system. In order to save disk space and
               : memory, as well as to make upgrading easier, common system code is
               : kept in one place and shared between programs. This particular package
               : contains the most important sets of shared libraries: the standard C
               : library and the standard math library. Without these two libraries, a
               : Linux system will not function.

    Name       : glibc
    Arch       : x86_64
    Version    : 2.5
    Release    : 42
    Size       : 11 M
    Repo       : installed
    Summary    : The GNU libc libraries.
    License    : LGPL
    Description: The glibc package contains standard libraries which are used by
               : multiple programs on the system. In order to save disk space and
               : memory, as well as to make upgrading easier, common system code is
               : kept in one place and shared between programs. This particular package
               : contains the most important sets of shared libraries: the standard C
               : library and the standard math library. Without these two libraries, a
               : Linux system will not function.

    [root@machin ~]# yum info glibc-common
    Loaded plugins: rhnplugin, security
    This system is not registered with RHN.
    RHN support will be disabled.
    Excluding Packages in global exclude list
    Finished
    Installed Packages
    Name       : glibc-common
    Arch       : x86_64
    Version    : 2.5
    Release    : 42
    Size       : 64 M
    Repo       : installed
    Summary    : Common binaries and locale data for glibc
    License    : LGPL
    Description: The glibc-common package includes common binaries for the GNU libc
               : libraries, as well as national language (locale) support.
Run Code Online (Sandbox Code Playgroud)

小智 43

从技术上讲,i686 实际上是 32 位指令集(x86 系列的一部分),而 x86_64 是 64 位指令集(也称为 amd64)。

从它的声音来看,您拥有一台具有 32 位库以实现向后兼容的 64 位机器。那应该完全没问题。


fin*_*inn 9

i686程序包旨在在 686 兼容处理器上执行,其中包括所有 Intel 32 位 x86 处理器,包括Pentium 4等,以及来自 AMD ( AMD K6 ) 和其他兼容 32- 的供应商的处理器位芯片。

想要查询更多的信息:

x86_64软件包旨在在与 AMD64 64 位平台兼容的处理器上执行,包括 AMD Athlon 64、AMD Opteron 和相关 AMD 处理器系列,以及基于Intel 64的处理器。

这些 64 位处理器与它们的 32 位前辈完全向后兼容,因此如果您有 AMD64 或 Intel 64 处理器,则由您决定是安装 64 位 x86_64 软件包还是 32 位 i686 软件包。要从您的系统中获得最高级别的性能,您可能需要使用 64 位 x86_64 分发包。

参考 :