我怎么能告诉如果我的服务器运行Ubuntu为64位或32位

可能重复:
确定Linux服务器的体系结构(32位或64位)

我想安装一个软件包,它有一个32位ubuntu和64位的版本。 我怎么知道哪一个在我的服务器上运行?

如果要检查软件包的版本而不是服务器的版本,请执行以下任一命令:

dpkg -s <packagename> dpkg -p <packagename> 

打印出包裹的细节。 例如,它看起来像这样:

 $ dpkg -s zip Package: zip Status: install ok installed Priority: optional Section: utils Installed-Size: 644 Maintainer: Ubuntu Core Developers <[email protected]> Architecture: amd64 Version: 3.0-1ubuntu1 Replaces: zip-crypt (<= 2.30-2) Depends: libc6 (>= 2.7) Recommends: unzip Conflicts: zip-crypt (<= 2.30-2) Description: Archiver for .zip files This is InfoZIP's zip program. It produces files that are fully compatible with the popular PKZIP program; however, the command line options are not identical. In other words, the end result is the same, but the methods differ. :-) . This version supports encryption. Original-Maintainer: Santiago Vila <[email protected]> 

你知道,当你input一个问题,它列出了类似的问题? 如果问题已经被提出,那么看看它们是有道理的。

确定Linux服务器的体系结构(32位或64位)

恩..如果有人想知道,我想通了:

 uname -m 

使用该命令

uname -a

阅读string。 这将接近尾声。 例:

Linux ora100 2.6.5-7.252-smp#1 SMP星期二Feb 14 11:11:04 UTC 2006 x86_64 x86_64 x86_64 GNU / Linux

如果你有一个64位的服务器,它可以运行一个(32或64),但我会尽可能坚持64位。 而Ubuntu通常坚持使用与我的情况一样的安装。