How To Install spirv-tools on Fedora 36

In this tutorial we learn how to install spirv-tools in Fedora 36. spirv-tools is API and commands for processing SPIR-V modules

Introduction

In this tutorial we learn how to install spirv-tools on Fedora 36.

What is spirv-tools

The package includes an assembler, binary module parser, disassembler, and validator for SPIR-V..

We can use yum or dnf to install spirv-tools on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install spirv-tools.

Install spirv-tools on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install spirv-tools

Install spirv-tools on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install spirv-tools

How To Uninstall spirv-tools on Fedora 36

To uninstall only the spirv-tools package we can use the following command:

sudo dnf remove spirv-tools

spirv-tools Package Contents on Fedora 36

/usr/bin/spirv-as
/usr/bin/spirv-cfg
/usr/bin/spirv-dis
/usr/bin/spirv-lesspipe.sh
/usr/bin/spirv-link
/usr/bin/spirv-lint
/usr/bin/spirv-opt
/usr/bin/spirv-reduce
/usr/bin/spirv-val
/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/4e6b9f7be1cf0a99b3935a235051879a8f3b3e
/usr/lib/.build-id/61
/usr/lib/.build-id/61/43b15d0b0ee32c579fb4a639bd02e971f598e7
/usr/lib/.build-id/74
/usr/lib/.build-id/74/f5d81a2102f2f3187373eb02cdc7b95e801552
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/e4bc36ac6e72dc188ab3b1d532febdcdb80701
/usr/lib/.build-id/93
/usr/lib/.build-id/93/f944dc95af787a841f3db21858f98ef20509ed
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/a274957a89f3572a17d6f87db6ce9e84b1c885
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/0065e07bf94862bd32a75c774b814a516f82bd
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/034e00dda8ae41f5e0fac8148208735e7bd9a8
/usr/share/doc/spirv-tools
/usr/share/doc/spirv-tools/CHANGES
/usr/share/doc/spirv-tools/README.md
/usr/share/licenses/spirv-tools
/usr/share/licenses/spirv-tools/LICENSE

References

Summary

In this tutorial we learn how to install spirv-tools on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).