Run uname -m in a terminal. If it prints aarch64, you're running an ARM64 system; if it prints x86_64, you're running AMD64 (also called x86-64). Those two strings settle the question for almost every desktop, laptop, server, and Raspberry Pi running Linux, and the check takes about five seconds.

The confusion usually comes from three places: the naming (ARM64 vs. aarch64, AMD64 vs. x86_64), the fact that "AMD64" runs on Intel chips too, and the difference between the architecture of the machine and the architecture a particular program was built for. This guide covers the reliable commands, what their output means, how to check emulated or containerized environments, and how to verify a downloaded package matches your system before you install it.

The fastest check: uname -m and what each result means

uname -m prints the machine hardware name as the kernel sees it. On Linux this is the single most dependable one-line answer, and it requires no special packages.

Open a terminal and run:

uname -m

The common outputs and their meanings:

  • aarch64 — 64-bit ARM. This is Linux's kernel name for ARM64 (the architecture ARM markets as AArch64).
  • x86_64 — 64-bit x86, which is what the industry calls AMD64. It appears on both AMD and Intel processors.
  • armv7l — 32-bit ARM, common on older Raspberry Pi boards and some embedded devices. This is not ARM64.
  • i686 or i386 — 32-bit x86. Old, but still occasionally seen on lightweight distributions or virtual machines.
  • riscv64, ppc64le, s390x — other 64-bit architectures; relevant mainly on servers and specialized hardware.

If you want the kernel's fuller description in the same command, uname -a prints the kernel name, hostname, kernel release, build date, architecture, and operating system in one line. The architecture field is the same value uname -m gives you.

One nuance worth knowing: uname -m reports the architecture of the running kernel, so it reflects the machine (or the virtual machine's configured CPU) rather than any individual program. That distinction matters later when you're checking whether a specific binary will run.

aarch64, arm64, ARMv8: sorting out the ARM vocabulary

Linux, the compiler toolchain, and package repositories use slightly different names for the same 64-bit ARM architecture, which is why the terminology feels messy.

  • ARM64 is the general marketing and ecosystem term for 64-bit ARM.
  • AArch64 is the formal architecture name; Linux and GCC use the lowercase aarch64 as the machine identifier.
  • ARMv8-A and later (ARMv9-A) are the underlying architecture revisions that include the 64-bit instruction set. A CPU described as ARMv8-A is 64-bit capable.
  • armhf / armv7 refer to 32-bit ARM with hardware floating point — a different target entirely.

So if uname -m says aarch64, your system is ARM64. If documentation or a download page says "ARM64" or "aarch64," you want that build. If it says "armhf," "armv7," or "arm32," that's the 32-bit variant and it generally will not run natively on a pure 64-bit ARM userland.

There's an edge case on some ARM systems: a 64-bit ARM CPU can run a 32-bit ARM kernel and userland, in which case uname -m reports armv7l even though the silicon supports ARM64. Conversely, some distributions ship a 64-bit kernel with mixed 32-bit userspace on certain boards. For the "am I ARM64 or AMD64" question, the kernel string is still the right first answer, but the next section explains how to confirm the CPU itself.

Why "AMD64" shows up on Intel machines

AMD64 is the 64-bit extension to x86 that AMD designed and shipped first; Intel adopted a compatible implementation and marketed it as Intel 64 (formerly EM64T). Because AMD created the specification, the architecture is canonically named AMD64, and Linux, BSD, and most compilers use x86_64 for it.

The practical consequence: an Intel Core or Xeon CPU will report x86_64 from uname -m, and software packages labeled "AMD64" or "x86_64" are the correct ones for it. Seeing "AMD64" in a Debian or Ubuntu package filename on an Intel laptop is expected, not a sign you downloaded the wrong thing. The same goes for .deb packages suffixed _amd64.deb, which are the standard 64-bit x86 builds.

If you specifically want to know whether the physical CPU is Intel or AMD — a different question from the architecture — use:

grep -m1 'model name' /proc/cpuinfo

That prints the processor model string, such as "AMD Ryzen 7 5800X" or "Intel Core i7-1165G7." Both are x86_64 machines. This is useful when someone asks "is this an AMD system?" and you need to distinguish the CPU vendor from the architecture name.

Reading the CPU details from /proc/cpuinfo and lscpu

uname -m answers the architecture question, but /proc/cpuinfo and lscpu give you the detail to confirm it and to understand the machine's capabilities.

A quick architecture-focused extraction:

grep -m1 -E 'vendor_id|model name|CPU architecture|Features' /proc/cpuinfo

On x86_64 systems you'll typically see vendor_id (GenuineIntel or AuthenticAMD), a model name, and a flags line listing instruction set extensions such as sse4_2, avx2, and vmx or svm for virtualization. On ARM systems the fields differ: you may see CPU implementer, CPU architecture (often a number like 8 for ARMv8), and Features listing things like fp, asimd (ARM's NEON SIMD), and crc32.

lscpu is the friendlier tool when it's installed (part of util-linux, present on most mainstream distributions):

lscpu

Its output includes an Architecture line (x86_64 or aarch64), plus CPU op-modes, byte order, core count, and virtualization details. The CPU op-mode(s) line is particularly informative on x86: 32-bit, 64-bit confirms the CPU supports both, which is normal for any modern x86 chip.

A caution about /proc/cpuinfo: its format is architecture-specific and not standardized, so parsing it with scripts is brittle across platforms. For a reliable programmatic check, prefer uname -m or the dpkg --print-architecture approach below.

How to check the architecture your package manager targets

The kernel architecture and the userspace package architecture usually match, but they can diverge on multiarch systems, in containers, and on systems running a 32-bit userland on 64-bit hardware. Package managers expose the target architecture directly.

On Debian, Ubuntu, and derivatives:

dpkg --print-architecture

This prints the primary architecture for installed packages, typically amd64 or arm64. It also confirms the naming convention you'll see in package filenames: _amd64.deb and _arm64.deb are the 64-bit x86 and ARM builds respectively. To see all architectures enabled for multiarch (for example, if 32-bit i386 libraries are also installed), run dpkg --print-foreign-architectures.

On Fedora, RHEL, and other RPM-based distributions:

rpm --eval '%{_arch}'

or check uname -m output equivalents, since RPM uses the same x86_64 and aarch64 names. On Arch Linux and its derivatives, uname -m is generally sufficient because the repositories are architecture-specific.

The reason this matters: installing the wrong architecture package usually fails cleanly with a message like "package architecture (arm64) does not match system (amd64)." But sometimes, especially with manually downloaded binaries or container images, you get a confusing "cannot execute binary file: Exec format error" instead. Knowing which architecture string your package manager expects prevents both.

Checking ARM64 vs AMD64 inside Docker, WSL, and virtual machines

Containerized and virtualized environments can hide the real architecture, so the check depends on what layer you're inspecting.

Docker containers. Inside a container, uname -m reports the host kernel's architecture, because containers share the host kernel. A container image, however, is built for a specific architecture. To check the image's target:

docker image inspect <image> --format '{{.Architecture}}'

That prints amd64, arm64, or another value. If you're on an ARM64 machine and pull an image that only publishes amd64, Docker may run it under emulation (QEMU/binfmt) on some setups, which works but is much slower. docker run --rm <image> uname -m shows what the container itself sees and can reveal emulation.

WSL (Windows Subsystem for Linux). On an x86_64 Windows PC, WSL reports x86_64. On Windows on ARM devices (for example, Snapdragon-based laptops), a native ARM64 WSL distribution reports aarch64. If a distribution is running under x86 emulation, results can be inconsistent; checking uname -m inside the distribution is the direct answer, and Microsoft's documentation for your Windows build is the place to confirm emulation behavior.

Virtual machines. A VM reports the architecture you configured for its virtual CPU. A VM created on an AMD64 host and given an x86_64 vCPU reports x86_64, even if the host were ARM. If you're using Apple Silicon Macs with ARM-based virtualization, a Linux VM will report aarch64; x86_64 VMs there run under emulation and report x86_64 from inside, which reflects the emulated CPU.

Cross-compiled or multi-arch setups. On systems with binfmt_misc and QEMU registered, you can execute foreign-architecture binaries. In that case, uname -m run by an emulated binary still reports the emulated architecture, not the host's. To see the host, run the command natively or check arch against uname -m — though on a normal system arch and uname -m are identical.

Verifying a downloaded binary or package before installing

Once you know you're on aarch64 or x86_64, you can confirm a downloaded file matches before you run or install it. The file command reads the ELF header and reports the target architecture.

file ./some-program

Typical output for a 64-bit x86 binary mentions "ELF 64-bit LSB executable, x86-64." For ARM64 it says "ELF 64-bit LSB executable, ARM aarch64." A 32-bit ARM binary says "ARM, EABI5" and a 32-bit x86 binary says "Intel 80386" or "i386."

For shared libraries and some stripped binaries, file still reports the architecture, though it may not identify the exact CPU revision. For Go binaries, file often can't determine the architecture from the header alone in older toolchains; go version -m ./binary can show build settings if it's a Go program.

You can also inspect the ELF header directly:

readelf -h ./some-program | grep Machine

That prints a Machine: line naming the target, such as Advanced Micro Devices X86-64 or AArch64. readelf is part of binutils and is usually available; objdump -f ./some-program gives similar header information.

A binary compiled for the wrong architecture fails immediately with "cannot execute binary file: Exec format error" on a system without emulation. That error is a strong hint that you grabbed an arm64 build on an amd64 machine or vice versa. The fix is to download the matching build rather than to try to force it.

Matching architecture names across installers, repositories, and download pages

Download pages and repositories use several labels for the same two architectures, and mismatching labels is the most common cause of "wrong architecture" errors. A quick reference keeps it straight:

What you see 64-bit x86 64-bit ARM
uname -m x86_64 aarch64
Debian/Ubuntu package suffix amd64 arm64
RPM / Fedora naming x86_64 aarch64
Common download-page label x86_64, AMD64, x64 ARM64, aarch64, arm64
ELF Machine (readelf) Advanced Micro Devices X86-64 AArch64

Two traps are worth flagging. First, "x64" is a marketing synonym for x86_64/AMD64 and has nothing to do with ARM's 64-bit architecture despite the similar-sounding name. Second, "arm64" and "aarch64" are the same thing on Linux; you don't need to hunt for a separate "aarch64" package if the repository only lists "arm64."

For tarball-based installers, the download page's "Architecture" or "System" dropdown is the place to match: choose x86_64/amd64 on Intel or AMD, arm64/aarch64 on ARM64 boards and Apple Silicon VMs. When a project publishes only one architecture, that's a hard limit, not a configuration problem — and it's worth checking the project's release notes for whether an alternative build exists.

When the answer still isn't clear

A few situations produce ambiguous or misleading results. If uname -m reports something unexpected on a board you expected to be ARM64, check whether the distribution installed a 32-bit userland; dpkg --print-architecture on a Raspberry Pi OS install, for example, may say armhf even on a board that supports ARM64. Moving to a 64-bit OS image resolves it if you need ARM64 packages.

On very old or minimal systems without uname (rare, but possible on embedded images), reading /proc/sys/kernel/arch or checking /proc/cpuinfo still gives you the answer. On systems where lscpu isn't installed, uname -m is the fallback and remains sufficient for the two-way ARM64-versus-AMD64 question.

If none of the commands are available, the architecture is also implied by the package files present: ls /lib/modules/$(uname -r)/ often shows architecture-specific directories on modular kernels, and the ARCH setting in /etc/os-release-adjacent tooling or the output of uname -a in boot logs will point the way. In practice, uname -m works on every mainstream Linux distribution, so the other checks are for confirming details rather than replacing it.

For the original question, the short answer stands: run uname -m, read aarch64 as ARM64 and x86_64 as AMD64, and use the package-manager and download-label conventions above whenever you need to match a build to your machine.