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

posted @ 2015-03-18 00:15  n0p  阅读(180)  评论(0编辑  收藏  举报