How To Install spirv-tools on CentOS 8
Introduction
In this tutorial we learn how to install spirv-tools
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install spirv-tools.
Install spirv-tools 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 spirv-tools
using dnf
by running the following command:
sudo dnf -y install spirv-tools
Install spirv-tools 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 spirv-tools
using yum
by running the following command:
sudo yum -y install spirv-tools
How To Uninstall spirv-tools on CentOS 8
To uninstall only the spirv-tools
package we can use the following command:
sudo dnf remove spirv-tools
spirv-tools Package Contents on CentOS 8
/usr/bin/spirv-as
/usr/bin/spirv-cfg
/usr/bin/spirv-dis
/usr/bin/spirv-lesspipe.sh
/usr/bin/spirv-link
/usr/bin/spirv-opt
/usr/bin/spirv-reduce
/usr/bin/spirv-val
/usr/lib/.build-id
/usr/lib/.build-id/75
/usr/lib/.build-id/75/87278141180c04d491803d61dd347c49df305b
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/222e31a5300ba824fdc66ec62c1b2c4b758532
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/1fc241411334b85ff84c3065b3265e70b75244
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/7140e6f1f71021285e73c5c65e78d930662a27
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/f1371114caf69a503fc50a4b08e0e2d865c501
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/6d27805c58a437c0f469e7bac1335d656b5a9f
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/d3ece722b8aa1c045efa4b88f6c32bfa233595
/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 CentOS 8 using yum and dnf.