How To Install smp_utils on Fedora 34

smp_utils is Utilities for SAS management protocol (SMP)

Introduction

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

What is smp_utils

This is a package of utilities. Each utility sends a Serial Attached SCSI (SAS) Management Protocol (SMP) request to a SMP target. If the request fails then the error is decoded. If the request succeeds then the response is either decoded, printed out in hexadecimal or output in binary. This package supports multiple interfaces since SMP passthroughs are not mature. This package supports the linux 2.4 and 2.6 series and should be easy to port to other operating systems. Warning and the incorrect usage of them may render your system inoperable.

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

Install smp_utils 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 smp_utils using dnf by running the following command:

sudo dnf -y install smp_utils

Install smp_utils 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 smp_utils using yum by running the following command:

sudo yum -y install smp_utils

How To Uninstall smp_utils on Fedora 34

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

sudo dnf remove smp_utils

smp_utils Package Contents on Fedora 34

/usr/bin/smp_conf_general
/usr/bin/smp_conf_phy_event
/usr/bin/smp_conf_route_info
/usr/bin/smp_conf_zone_man_pass
/usr/bin/smp_conf_zone_perm_tbl
/usr/bin/smp_conf_zone_phy_info
/usr/bin/smp_discover
/usr/bin/smp_discover_list
/usr/bin/smp_ena_dis_zoning
/usr/bin/smp_phy_control
/usr/bin/smp_phy_test
/usr/bin/smp_read_gpio
/usr/bin/smp_rep_broadcast
/usr/bin/smp_rep_exp_route_tbl
/usr/bin/smp_rep_general
/usr/bin/smp_rep_manufacturer
/usr/bin/smp_rep_phy_err_log
/usr/bin/smp_rep_phy_event
/usr/bin/smp_rep_phy_event_list
/usr/bin/smp_rep_phy_sata
/usr/bin/smp_rep_route_info
/usr/bin/smp_rep_self_conf_stat
/usr/bin/smp_rep_zone_man_pass
/usr/bin/smp_rep_zone_perm_tbl
/usr/bin/smp_write_gpio
/usr/bin/smp_zone_activate
/usr/bin/smp_zone_lock
/usr/bin/smp_zone_unlock
/usr/bin/smp_zoned_broadcast
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/a8a34a8f4fd1a1b783de5da8d7be036692fe2d
/usr/lib/.build-id/09
/usr/lib/.build-id/09/2d864b665c120316c1baa5fd2cac4f175be7c8
/usr/lib/.build-id/09/dc555d49c0753819ac84976e485ecc4fd1adb7
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/8111a9d38696720a2370aa344d2241c1cdb21f
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/1fda9608036ab26a77066c68ad5f93cb0e69be
/usr/lib/.build-id/21
/usr/lib/.build-id/21/b99761a8c69498da457ffe95c9947c1bf8fa89
/usr/lib/.build-id/24
/usr/lib/.build-id/24/e091687d409464dbee4f3029e10794ce592147
/usr/lib/.build-id/27
/usr/lib/.build-id/27/d88eb4a6610a801d8f2343e8b6b3d400a8a3df
/usr/lib/.build-id/27/ebf866f3d026488947dc365802ac63468ec78e
/usr/lib/.build-id/28
/usr/lib/.build-id/28/3be5dc3a9cde5f5962b2028f4280643ab6a1bf
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/9b507b7f6326346ad94783c2657fba99397d01
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/04cebd07658bbadd78facdfcde561bbeb0c563
/usr/lib/.build-id/47
/usr/lib/.build-id/47/85d3fa04dfef8fb16d9441f53f4e42769ad21d
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/b9007475f76e9b2e28b3343e8dd6a76e702358
/usr/lib/.build-id/54
/usr/lib/.build-id/54/8c841e8b1cf3b5c47abd6c93d76ad69b0c9103
/usr/lib/.build-id/56
/usr/lib/.build-id/56/c869802fc73dfd59f0c22b78a02a7a556b4f93
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/6e8f4daf650d50216da94b2802f543b8f3c81a
/usr/lib/.build-id/5f/c767462ecf7f9c395426fe893b48c83e8582fb
/usr/lib/.build-id/69
/usr/lib/.build-id/69/52a5d0df69060b15a57ebd03ece056f29bef65
/usr/lib/.build-id/93
/usr/lib/.build-id/93/2a4c73fc4e79bdd90acfda5d1fae6e2b7dcc95
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/8ad7bb7f22a0c33a7b63f01ebb9084722e6a7e
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/9dc939c53709ec1c4faa7854863a971cffbe31
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/bce305070a43fceea3a9b8c23165cb772ec923
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/5040571333c2ac44ed22dbbfb9b5382bd58c1e
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/6bda613ff78ae06c835b0a713599279f357bba
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/f4c28b55796b6492d1f450af432a47edbfd913
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/11384caa1d750dfec40c5b04aac8b870c8b36f
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/95b9ec73b8730ddbdb06d369ef627dac0d3ac7
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/8498e18f615963d23f71ba5c87aae22e333a99
/usr/share/doc/smp_utils
/usr/share/doc/smp_utils/COPYING
/usr/share/doc/smp_utils/COVERAGE
/usr/share/doc/smp_utils/CREDITS
/usr/share/doc/smp_utils/ChangeLog
/usr/share/doc/smp_utils/README
/usr/share/man/man8/smp_conf_general.8.gz
/usr/share/man/man8/smp_conf_phy_event.8.gz
/usr/share/man/man8/smp_conf_route_info.8.gz
/usr/share/man/man8/smp_conf_zone_man_pass.8.gz
/usr/share/man/man8/smp_conf_zone_perm_tbl.8.gz
/usr/share/man/man8/smp_conf_zone_phy_info.8.gz
/usr/share/man/man8/smp_discover.8.gz
/usr/share/man/man8/smp_discover_list.8.gz
/usr/share/man/man8/smp_ena_dis_zoning.8.gz
/usr/share/man/man8/smp_phy_control.8.gz
/usr/share/man/man8/smp_phy_test.8.gz
/usr/share/man/man8/smp_read_gpio.8.gz
/usr/share/man/man8/smp_rep_broadcast.8.gz
/usr/share/man/man8/smp_rep_exp_route_tbl.8.gz
/usr/share/man/man8/smp_rep_general.8.gz
/usr/share/man/man8/smp_rep_manufacturer.8.gz
/usr/share/man/man8/smp_rep_phy_err_log.8.gz
/usr/share/man/man8/smp_rep_phy_event.8.gz
/usr/share/man/man8/smp_rep_phy_event_list.8.gz
/usr/share/man/man8/smp_rep_phy_sata.8.gz
/usr/share/man/man8/smp_rep_route_info.8.gz
/usr/share/man/man8/smp_rep_self_conf_stat.8.gz
/usr/share/man/man8/smp_rep_zone_man_pass.8.gz
/usr/share/man/man8/smp_rep_zone_perm_tbl.8.gz
/usr/share/man/man8/smp_utils.8.gz
/usr/share/man/man8/smp_write_gpio.8.gz
/usr/share/man/man8/smp_zone_activate.8.gz
/usr/share/man/man8/smp_zone_lock.8.gz
/usr/share/man/man8/smp_zone_unlock.8.gz
/usr/share/man/man8/smp_zoned_broadcast.8.gz

References

Summary

In this tutorial we learn how to install smp_utils on Fedora 34 using yum and dnf.