As Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

As Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

as

Portable GNU assembler.
Primarily intended to assemble output from `gcc` to be used by `ld`.

Install as

  • Debian apt-get install binutils-i586-linux-gnu Click to copy
  • Ubuntu apt-get install binutils-2.26 Click to copy
  • Alpine OS apk add binutils Click to copy
  • Arch Linux pacman -S aarch64-linux-gnu-binutils Click to copy
  • Kali Linux apt-get install binutils-i686-kfreebsd-gnu Click to copy
  • CentOS yum install binutils Click to copy
  • Fedora dnf install binutils-arc-linux-gnu Click to copy
  • Raspbian apt-get install binutils-mingw-w64-i686 Click to copy
  • macOS brew install binutils Click to copy

Portable GNU assembler. Primarily intended to assemble output from `gcc` to be used by `ld`.

How to use as?

Below are few example commands for as that you can use in the terminal.

Assemble a file, writing the output to a.out:
as file.sClick to copy
Assemble the output to a given file:
as file.s -o out.oClick to copy
Generate output faster by skipping whitespace and comment preprocessing. (Should only be used for trusted compilers):
as -f file.sClick to copy
Include a given path to the list of directories to search for files specified in .include directives:
as -I path/to/directory file.sClick to copy
Installing as 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 as 2026 package in your OS.