Ways to Uninstall or Install nasm on Ubuntu 22.04

Updated: September 16, 2022

Netwide Assembler. NASM will currently output flat-form binary files, a.out, COFF and ELF Unix object files, and Microsoft 16-bit DOS and Win32 object files. I will show you how to install nasm on Ubuntu 22.04 in this guide.

Requirements to install

  • OS: Ubuntu 22.04 is needed for nasm to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install nasm on Ubuntu 22.04

Install nasm Ubuntu 22.04

nasm is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install nasm using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these steps to install nasm on your Ubuntu 22.04.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install nasm Ubuntu by executing this command in the terminal.

sudo apt-get install nasm

Install nasm using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After installing it, you can now install nasm by following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install nasm Ubuntu by executing this command in the terminal.

sudo aptitude -y install nasm

Uninstall nasm on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a nasm, can be easily uninstalled by anyone.

You can uninstall nasm on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove nasm

To uninstall nasm and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge nasm

Summary

In this guide, I showed you ways to install nasm on Ubuntu 22.04 and some ways to uninstall nasm too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.