# Install nasm with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Netwide Assembler (NASM) is an 80x86 assembler. Version 3.02 via Homebrew; verified 2026-06-29.

## Install

```sh
sudo av install brew:nasm
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nasm
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nasm
```

  Evidence: MacPorts ports tree: lang/nasm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add nasm
```

  Evidence: Alpine Linux edge package indexes: nasm from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install nasm
```

  Evidence: Debian stable package indexes: nasm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install nasm
```

  Evidence: Fedora Rawhide package metadata: nasm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#nasm
```

  Evidence: nixpkgs package indexes: pkgs/by-name/na/nasm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S nasm
```

  Evidence: Arch Linux sync databases: nasm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install nasm
```

  Evidence: openSUSE Tumbleweed package metadata: nasm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install nasm
```

  Evidence: Chocolatey community package catalog: nasm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','naps2'

- Scoop (92%):

```sh
scoop install main/nasm
```

  Evidence: Scoop official bucket manifest trees: bucket/nasm.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id NASM.NASM -e
```

  Evidence: Windows Package Manager source index: NASM.NASM from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:nasm
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nasm>
- **Version:** 3.02
- **Source summary:** Netwide Assembler (NASM) is an 80x86 assembler
- **Homepage:** <https://www.nasm.us/>
- **Repository:** <https://github.com/netwide-assembler/nasm>
- **Upstream docs:** <https://www.nasm.us/docs.html>
- **License:** BSD-2-Clause
- **Source archive:** <https://www.nasm.us/pub/nasm/releasebuilds/3.02/nasm-3.02.tar.xz>
- **Last updated:** 2026-06-29T07:58:49Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- nasm (cli)
- ndisasm (cli)
- nasm (alias)
- ndisasm (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.02
- Package-manager updated: 2026-06-29
- Local data: ok
- Upstream repository: https://www.nasm.us/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

NASM, the Netwide Assembler, is a long-running x86 and x86-64 assembler with Intel-like syntax, broad object-format support, a companion disassembler `ndisasm`, and a reputation as a standard tool for low-level x86 work.

### Project history

The official NASM site says the project was originally developed by Simon Tatham and Julian Hall and is maintained by a team led by H. Peter Anvin. The documentation's version history records version 0.90 in October 1996 as the first release version and the first support for object-file output.

NASM 2.00 added general x86-64 support, Win64 COFF, ELF64, and Mach-O output formats. NASM 3 series became the production version in 2025 and added APX instruction encodings and preprocessor improvements. The official site listed stable version 3.02 on 2026-06-29 and a development snapshot dated 2026-07-01.

### Adoption history

NASM is packaged almost everywhere: Homebrew input data lists Alpine, Debian, Fedora, MacPorts, Nix, pacman, Scoop, Ubuntu, winget, and zypper package names. Homebrew's formula JSON generated on 2026-07-01 reported 93,847 installs over 365 days and 35,027 installs-on-request over 365 days, making it the dominant package in this batch by Homebrew adoption.

GitHub API data fetched on 2026-07-01 showed 3,249 stars and 410 forks for the current GitHub-hosted repository. Those numbers understate its age because NASM predates GitHub by more than two decades and has long been distributed through project tarballs, OS packages, compiler-course notes, and low-level systems tutorials.

### How it is used

Users assemble source with commands such as `nasm -f elf myfile.asm` for object files or `nasm -f bin program.asm -o program.com` for flat binaries. The package also installs `ndisasm`, useful for disassembling raw x86 byte streams.

Package nerds encounter NASM as a build dependency for projects containing hand-written x86 assembly, codec kernels, bootloaders, OS-dev experiments, exploit/reversing exercises, and compiler or architecture classes. Its value is the predictable Intel-like syntax and explicit output-format selection.

### Why package nerds care

NASM is one of the canonical x86 assembler packages. It matters because it is small, scriptable, cross-platform, and stable enough to appear as a dependency in build systems that need exact x86 object generation without invoking a full compiler frontend.

### Timeline

- 1996-10: NASM 0.90 released as the first release version with object-file output support.
- 2007: NASM 2.00 series added general x86-64 support and 64-bit object formats.
- 2025: NASM 3 series became the production line, adding APX instruction encodings.
- 2026-06-29: NASM 3.02 listed by the official site as stable.
- 2026-07-01: Homebrew formula JSON listed stable version 3.02 and 93,847 installs over 365 days.

### Related projects

- ndisasm
- Yasm
- GNU assembler
- Intel Software Developer Manual

### Sources

- <https://api.github.com/repos/netwide-assembler/nasm>
- <https://formulae.brew.sh/api/formula/nasm.json>
- <https://formulae.brew.sh/formula/nasm>
- <https://github.com/netwide-assembler/nasm>
- <https://www.nasm.us/>
- <https://www.nasm.us/doc/nasm01.html>
- <https://www.nasm.us/doc/nasm02.html>
- <https://www.nasm.us/doc/nasmac.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nasm
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - nasm - 2.16.03-1: normalized package name match | Debian stable package indexes: nasm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | General-purpose x86 assembler | http://www.nasm.us/
- Nix - nasm: normalized package name match | nixpkgs package indexes: pkgs/by-name/na/nasm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - nasm - 2.16.01-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: nasm from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | General-purpose x86 assembler | http://www.nasm.us/
- apk - nasm - 3.01-r0: normalized package name match | Alpine Linux edge package indexes: nasm from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | 80x86 assembler designed for portability and modularity | https://www.nasm.us
- apk - nasm-doc - 3.01-r0: normalized package name match | Alpine Linux edge package indexes: nasm-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | 80x86 assembler designed for portability and modularity (documentation) | https://www.nasm.us
- dnf - nasm - 3.01-3.fc45: normalized package name match | Fedora Rawhide package metadata: nasm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A portable x86 assembler which uses Intel-like syntax | http://www.nasm.us
- dnf - nasm-doc - 3.01-3.fc45: normalized package name match | Fedora Rawhide package metadata: nasm-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation for NASM | http://www.nasm.us
- pacman - nasm - 3.01-1: normalized package name match | Arch Linux sync databases: nasm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | 80x86 assembler designed for portability and modularity | https://ww.nasm.us
- zypper - nasm - 3.01-1.3: normalized package name match | openSUSE Tumbleweed package metadata: nasm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Netwide Assembler (An x86 Assembler) | https://www.nasm.us/
- MacPorts - nasm: normalized package name match | MacPorts ports tree: lang/nasm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - nasm: normalized package name match | Chocolatey community package catalog: nasm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','naps2'
- Scoop - main/nasm: normalized package name match | Scoop official bucket manifest trees: bucket/nasm.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - NASM.NASM: normalized package name match | Windows Package Manager source index: NASM.NASM from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [acme](https://www.automicvault.com/pkg/brew/acme/) - Shares av.db curated category or tags: assembler, cli, developer-tools.
- [asm6809](https://www.automicvault.com/pkg/brew/asm6809/) - Shares av.db curated category or tags: assembler, cli, developer-tools.
- [dasm](https://www.automicvault.com/pkg/brew/dasm/) - Shares av.db curated category or tags: assembler, cli, developer-tools.
- [gputils](https://www.automicvault.com/pkg/brew/gputils/) - Shares av.db curated category or tags: assembler, cli, developer-tools.
- [jasmin](https://www.automicvault.com/pkg/brew/jasmin/) - Shares av.db curated category or tags: assembler, cli, developer-tools.
- [tass64](https://www.automicvault.com/pkg/brew/tass64/) - Shares av.db curated category or tags: assembler, cli, developer-tools.
- [vc4asm](https://www.automicvault.com/pkg/brew/vc4asm/) - Shares av.db curated category or tags: assembler, cli, developer-tools.
- [objconv](https://www.automicvault.com/pkg/brew/objconv/) - Shares av.db curated category or tags: cli, developer-tools, x86, x86-64.
- [yasm](https://www.automicvault.com/pkg/brew/yasm/) - Local package facts share a topical domain. Shared terms: assembler, cli, compiler, developer, developer-tools.
- [spirv-tools](https://www.automicvault.com/pkg/brew/spirv-tools/) - Local package facts share a topical domain. Shared terms: assembler, cli, compiler, compiler-toolchain, developer.

## Combined YAML source

View the package source record on GitHub. [combined/nasm.yml](https://github.com/automic-vault/db/blob/main/combined/nasm.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
