Possible Duplicate:
Determine Linux Server’s Architecture (32 or 64 bit)
I want to install a package and it has a version for 32-bit ubuntu and 64-bit. How can I tell which one is running on my server?
Possible Duplicate:
Determine Linux Server’s Architecture (32 or 64 bit)
I want to install a package and it has a version for 32-bit ubuntu and 64-bit. How can I tell which one is running on my server?
You know when you're typing out a question it lists similar ones? Well it makes sense to look at them in case the question has been asked before;
use the command
uname -a
read the string. It will be near the end. Example:
Linux ora100 2.6.5-7.252-smp #1 SMP Tue Feb 14 11:11:04 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
If you have a 64bit server, it can run either one (32 or 64) but I would stick with 64bit whenever possible. And Ubuntu usually sticks with the one that it was installed with in my case.
If you want to check the version of the package and not the version of the server, do either one of the following commands:
dpkg -s <packagename>
dpkg -p <packagename>
to print out the details of the package. For example, it will look like this:
$ dpkg -s zip
Package: zip
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 644
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
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 <sanvila@debian.org>