How To Install Nasm On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Anibal Monsalve Salazar
Email: [email protected] .
Website: http://www.nasm.us/
Section: devel
Install nasm
-
Debian
apt-get install nasmClick to copy -
Ubuntu
apt-get install nasmClick to copy -
Alpine OS
apk add nasmClick to copy -
Arch Linux
pacman -S nasmClick to copy -
Kali Linux
apt-get install nasmClick to copy -
CentOS
yum install nasmClick to copy -
Fedora
dnf install nasmClick to copy -
Raspbian
apt-get install nasmClick to copy -
macOS
brew install nasmClick to copy
The Netwide Assembler, a portable 80x86 assembler.
How to use nasm?
Below are few example commands for nasm that you can use in the terminal.
Assemble `source.asm` into a binary file `source`, in the (default) raw binary format:nasm source.asmClick to copyAssemble `source.asm` into a binary file `output_file`, in the specified format:nasm -f format source.asm -o output_fileClick to copyList valid output formats (along with basic nasm help):nasm -hfClick to copyAssemble and generate an assembly listing file:nasm -l list_file source.asmClick to copyAdd a directory (must be written with trailing slash) to the include file search path before assembling:nasm -i /path/to/include_dir/ source.asmClick to copy
Installing nasm command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of nasm 2026 package in your OS.




