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).



dpkg --print-architecture


dpkg-architecture -qDEB_HOST_ARCH

  • 2
    dpkg-architecture is in the dpkg-dev package which isn't installed by default (although it is a dependency of build-essential). However, dpkg is by definition guaranteed to be there. – Neil Mayhew Feb 26 '13 at 18:15
  • @NeilMayhew good call, switched my accepted answer – therefromhere Feb 26 '13 at 21:29

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.