74

What's the command to find out which Debian package architecture I'm using?

eg, on a 64 bit x86, I'm expecting something like amd64, i386 on 32 bit x86 and darwin-x86_64 from OSX 10.6 (via Fink).

3 Answers3

120

or

dpkg --print-architecture

13k
  • 1,316
20

dpkg-architecture -qDEB_HOST_ARCH

17

In case you did add some other architecture that you forgot, like i386 to an amd64 system, you can check it by:

dpkg --print-foreign-architectures

Source: https://wiki.debian.org/Multiarch/HOWTO

tmh1999
  • 189