# nasm を Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget でインストール

nasm のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install nasm
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nasm
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

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

- Nix (92%):

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

  証拠: 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
```

  証拠: 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
```

  証拠: openSUSE Tumbleweed package metadata: nasm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install nasm
```

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

- Scoop (92%):

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

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:nasm
- **パッケージマネージャ:** Homebrew
- **バージョン:** 3.02
- **ソース概要:** Netwide Assembler (NASM) is an 80x86 assembler
- **ホームページ:** <https://www.nasm.us/>
- **リポジトリ:** <https://github.com/netwide-assembler/nasm>
- **最終更新:** 2026-06-29T07:58:49Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- nasm (エイリアス)
- ndisasm (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 3.02
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

- 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

### ソース

- <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>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- 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.02-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A portable x86 assembler which uses Intel-like syntax | http://www.nasm.us
- dnf - nasm-doc - 3.02-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for NASM | http://www.nasm.us
- pacman - nasm - 3.02-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://www.nasm.us
- zypper - nasm - 3.02-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nasm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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','multipass'
- 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


## Combined YAML source

View the package source record on GitHub. [combined/nasm.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nasm.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
