install nasm debian

Step-by-Step Guide: Install NASM on Debian

By Rachel Martin
AD

If you're a Linux developer, you might find yourself in need of an assembler at some point. NASM, the Netwide Assembler, is a popular choice, but installing it on Debian-based systems can be a bit tricky. This guide will walk you through the process, step-by-step.

Before we begin, ensure your system is fully updated. Open a terminal and type the following commands to update your package list and upgrade your system:

Installing NASM via Repository

Debian has NASM in its repositories, so installation is straightforward. You can use the apt package manager to install it.

AD
How to Install Debian via the Internet - Make Tech Easier
How to Install Debian via the Internet - Make Tech Easier
Easy Debian install
Easy Debian install
i3wm Debian
i3wm Debian

First, update your package list with the following command:

```bash sudo apt update ```

Using apt

Now, install NASM using apt. Type this command in your terminal:

Debian
Debian
Debian Fundamentals 🚀 Der Linux-Admin Lernpfad für Einsteiger & zukünftige Sysadmins
Debian Fundamentals 🚀 Der Linux-Admin Lernpfad für Einsteiger & zukünftige Sysadmins
Debian 12 KDE Plasma: The right GNU/Linux distribution for professional digital painting in 2024. Reasons and complete installation guide.
Debian 12 KDE Plasma: The right GNU/Linux distribution for professional digital painting in 2024. Reasons and complete installation guide.
```bash sudo apt install nasm ```

Hit 'Y' when prompted to confirm the installation, then press Enter. The process should complete within a minute or two, depending on your internet speed.

Verifying the Installation

After installation, you can verify that NASM is installed correctly bypéopening a terminal and typing:

AD
```bash nasm -v ```

The command should display the version of NASM installed on your system, indicating a successful install.

Setting up Debian on your MacBook
Setting up Debian on your MacBook
How to Add Nvidia Drivers to Your Debian Installation - Make Tech Easier
How to Add Nvidia Drivers to Your Debian Installation - Make Tech Easier
12 Reasons Why You Should Choose Debian Linux
12 Reasons Why You Should Choose Debian Linux
How to Install Debian 9 Linux Install Tutorial | (Linux Beginners Guide)
How to Install Debian 9 Linux Install Tutorial | (Linux Beginners Guide)
Linux Hints II
Linux Hints II
10 Things to Do After Installing Debian on Your PC
10 Things to Do After Installing Debian on Your PC

Compiling NASM from Source

While installing from the repository is convenient, you might need to compile NASM from source for newer versions or specific configurations. Here's how:

Downloading the Archive

First, download the NASM source archive from the official website. As of writing, the latest version is '2.14.02'. Download it using this command:

AD
```bash wget https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.gz ```

Compiling and Installing

Extract the archive and navigate to the extracted directory:

How to Install Debian on VirtualBox
How to Install Debian on VirtualBox
```bash tar -xvf nasm-2.14.02.tar.gz cd nasm-2.14.02 ```

Now, compile NASM using the following command:

```bash ./configure make ```

Finally, install it to your system:

AD
```bash sudo make install ```

Again, verify the installation by checking the version. You should now be ready to use NASM for your assembly language needs.

Now that you have NASM installed, why not explore some tutorials or projects to put your newfound knowledge to use? Happy coding!

AD