How To Install yasm on CentOS 7
Introduction
In this tutorial we learn how to install yasm
on CentOS 7.
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 7. In this tutorial we discuss both methods but you only need to choose one of method to install yasm.
Install yasm 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
using yum
by running the following command:
sudo yum -y install yasm
Install yasm 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
using dnf
by running the following command:
sudo dnf -y install yasm
How To Uninstall yasm on CentOS 7
To uninstall only the yasm
package we can use the following command:
sudo dnf remove yasm
References
Summary
In this tutorial we learn how to install yasm
on CentOS 7 using yum
and dnf
.