How To Install yasm-devel on CentOS 7

In this tutorial we learn how to install yasm-devel on CentOS 7. yasm-devel is Header files and static libraries for the yasm Modular Assembler

Introduction

In this tutorial we learn how to install yasm-devel on CentOS 7.

What is yasm-devel

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. Install this package if you need to rebuild applications that use yasm.

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

Install yasm-devel on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install yasm-devel

Install yasm-devel on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install yasm-devel

How To Uninstall yasm-devel on CentOS 7

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

sudo dnf remove yasm-devel

References

Summary

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