OS Manuals

/usr/bin/dpkg-architecture

headers for dpkg

From dpkg-dev 1.23.11-r3 (os), captured 2026-11-05 by running dpkg-architecture --help (exit 0). permalink

Usage: dpkg-architecture [<option>...] [<command>]

Commands:
  -l, --list
          List variables (default command).
  -L, --list-known
          List valid architectures (matching some criteria).
  -e, --equal <arch>
          Compare with host Debian architecture.
  -i, --is <arch-wildcard>
          Match against host Debian architecture.
  -q, --query <variable>
          Prints the value of <variable>.
  -s, --print-set
          Print command to set environment variables.
  -u, --print-unset
          Print command to unset environment variables.
  -c, --command <command>
          Set environment and run the command in it.
  -?, --help
          Show this help message.
      --version
          Show the version.

Options:
  -a, --host-arch <arch>
          Set host Debian architecture.
  -t, --host-type <type>
          Set host GNU system type.
  -A, --target-arch <arch>
          Set target Debian architecture.
  -T, --target-type <type>
          Set target GNU system type.
  -W, --match-wildcard <arch-wildcard>
          Restrict architecture list matching <arch-wildcard>.
  -B, --match-bits <arch-bits>
          Restrict architecture list matching <arch-bits>.
  -E, --match-endian <arch-endian>
          Restrict architecture list matching <arch-endian>.
      --print-format <format>
          Use <format> for --print-set and --print-unset, allowed values:
            shell (default), make.
  -f, --force
          Force flag (override variables set in environment).
Options (19)
OptionDescriptionSource
-l, --listList variables (default command).help
-L, --list-knownList valid architectures (matching some criteria).help
-e, --equal archCompare with host Debian architecture.help
-i, --is arch-wildcardMatch against host Debian architecture.help
-q, --query variablePrints the value of <variable>.help
-s, --print-setPrint command to set environment variables.help
-u, --print-unsetPrint command to unset environment variables.help
-c, --command commandSet environment and run the command in it.help
-?, --helpShow this help message.help
--versionShow the version.help
-a, --host-arch archSet the host Debian architecture.help + man
-t, --host-type typeSet the host GNU system type.help + man
-A, --target-arch archSet the target Debian architecture.help + man
-T, --target-type typeSet the target GNU system type.help + man
-W, --match-wildcard arch-wildcardRestrict the architectures listed by --list-known to ones matching the specified architecture wildcard.help + man
-B, --match-bits arch-bitsRestrict the architectures listed by --list-known to ones with the specified CPU bits.help + man
-E, --match-endian arch-endianRestrict the architectures listed by --list-known to ones with the specified endianness.help + man
--print-format formatSets the output format for --print-set and --print-unset, to either shell (default) or make.help + man
-f, --forceValues set by existing environment variables with the same name as used by the scripts are honored (i.e. used by dpkg-architecture), except if this force flag is present.help + man
Examples (6) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.