How To Install yasm on Fedora 34

yasm is Modular Assembler

Introduction

In this tutorial we learn how to install yasm on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install yasm.

Install yasm on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34

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

sudo dnf remove yasm

yasm Package Contents on Fedora 34

/usr/bin/vsyasm
/usr/bin/yasm
/usr/bin/ytasm
/usr/lib/.build-id
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/c496f9a974cb6f93fee7cdf482d0af270eb8c8
/usr/lib/.build-id/45
/usr/lib/.build-id/45/1441dcb1cc428fa53aed6ba986af90185807f8
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/8eb3290f396f56904544d53e8d90502c0db937
/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 Fedora 34 using yum and dnf.