How To Install nasm.x86_64 on Amazon Linux 2

In this tutorial we learn how to install nasm.x86_64 in Amazon Linux 2. nasm.x86_64 is A portable x86 assembler which uses Intel-like syntax

Introduction

In this tutorial we learn how to install nasm.x86_64 on Amazon Linux 2.

What is nasm.x86_64

NASM is the Netwide Assembler, a free portable assembler for the Intel 80x86 microprocessor series, using primarily the traditional Intel instruction mnemonics and syntax.

We can use yum to install nasm.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install nasm.x86_64.

Install nasm.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install nasm.x86_64 using yum by running the following command:

sudo yum -y install nasm.x86_64

How To Uninstall nasm.x86_64 on Amazon Linux 2

To uninstall only the nasm.x86_64 package we can use the following command:

sudo yum remove nasm.x86_64

nasm.x86_64 Package Contents on Amazon Linux 2

/usr/bin/nasm
/usr/bin/ndisasm
/usr/share/doc/nasm-2.15.03
/usr/share/doc/nasm-2.15.03/AUTHORS
/usr/share/doc/nasm-2.15.03/CHANGES
/usr/share/doc/nasm-2.15.03/README.md
/usr/share/licenses/nasm-2.15.03
/usr/share/licenses/nasm-2.15.03/LICENSE
/usr/share/man/man1/nasm.1.gz
/usr/share/man/man1/ndisasm.1.gz

References

Summary

In this tutorial we learn how to install nasm.x86_64 on Amazon Linux 2 using yum.