Which Debian package architecture am I using?
59,063
Solution 1
or
dpkg --print-architecture
Solution 2
dpkg-architecture -qDEB_HOST_ARCH
Solution 3
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
Related videos on Youtube
Author by
pion
Updated on September 17, 2022Comments
-
pion over 1 year
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 anddarwin-x86_64
from OSX 10.6 (via Fink). -
Neil Mayhew about 11 years
dpkg-architecture
is in thedpkg-dev
package which isn't installed by default (although it is a dependency ofbuild-essential
). However,dpkg
is by definition guaranteed to be there. -
pion about 11 years@NeilMayhew good call, switched my accepted answer