Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 21 down vote accepted

or

dpkg --print-architecture

share|improve this answer

dpkg-architecture -qDEB_HOST_ARCH

share|improve this answer
1  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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