Bu basit komut, yürütülebilir dosyanın 32 bit (i386) veya 64 bit (amd64) olup olmadığını gösterir.
dizimi:
apt-cache show $(dpkg -S /path/to/the/file | awk -F ':' '{print }') | awk '/Architecture:/ {print }' -
Örnek:
$ apt-cache show $(dpkg -S /usr/bin/gedit | awk -F ':' '{print }') | awk '/Architecture:/ {print }' -
amd64
Açıklama:
dpkg -S
komutu, dosyanın gerçekten ait olduğu paketi kapar. apt-cache show package
komutu, paketin ayrıntılarını gösterir. Bu ayrıntıdan awk, yalnızca Mimari bölümünü alır ve onu stdout'a yönlendirir.
OR
Bu komutu da deneyebilirsiniz,
$ dpkg -l $(dpkg -S /usr/bin/gedit | awk -F ':' '{print }') | awk '/ii/ {print }'
amd64