Ubuntu packages multi-architectures

Show current machine architecture

dpkg --print-architecture
It's built-in to the currently installed dpkg package.

Usage

use 'package:architecture', eg.

libc:i386
libc:amd64

只用'package'的话,安装的是current machine architecture

Add architecture

dpkg --add-architecture
apt-get update

dpkg architectures are stored in file /var/lib/dpkg/arch

Ref


to be continued

你可能感兴趣的:(Architecture)