How To Install yasm on CentOS 8

yasm is Modular Assembler

Introduction

In this tutorial we learn how to install yasm on CentOS 8.

What is yasm

Yasm is a complete rewrite of the NASM assembler under the “new” BSD License (some portions are under other licenses, see COPYING for details). It is designed from the ground up to allow for multiple assembler syntaxes to be supported (eg, NASM, TASM, GAS, etc.) in addition to multiple output object formats and even multiple instruction sets. Another primary module of the overall design is an optimizer module.

We can use yum or dnf to install yasm on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install yasm.

Install yasm on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install yasm using dnf by running the following command:

sudo dnf -y install yasm

Install yasm on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install yasm using yum by running the following command:

sudo yum -y install yasm

How To Uninstall yasm on CentOS 8

To uninstall only the yasm package we can use the following command:

sudo dnf remove yasm

yasm Package Contents on CentOS 8

/usr/bin/vsyasm
/usr/bin/yasm
/usr/bin/ytasm
/usr/lib/.build-id
/usr/lib/.build-id/55
/usr/lib/.build-id/55/0802dc7b9659dd63525a92009ec2c8fa6a17ad
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/a3530aae2081b60d3f782401fb2e26507a188e
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/cdfde49fad9025e280fd92b2aadc02b3527c5e
/usr/share/doc/yasm
/usr/share/doc/yasm/AUTHORS
/usr/share/licenses/yasm
/usr/share/licenses/yasm/Artistic.txt
/usr/share/licenses/yasm/BSD.txt
/usr/share/licenses/yasm/COPYING
/usr/share/licenses/yasm/GNU_GPL-2.0
/usr/share/licenses/yasm/GNU_LGPL-2.0
/usr/share/man/man1/yasm.1.gz

References

Summary

In this tutorial we learn how to install yasm on CentOS 8 using yum and dnf.