How To Install sg3_utils on Fedora 36

In this tutorial we learn how to install sg3_utils in Fedora 36. sg3_utils is Utilities for devices that use SCSI command sets

Introduction

In this tutorial we learn how to install sg3_utils on Fedora 36.

What is sg3_utils

Collection of Linux utilities for devices that use the SCSI command set. Includes utilities to copy data based on “dd” syntax and semantics (called sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check mode and log pages (sginfo, sg_modes and sg_logs); spin up and down disks (sg_start); do self tests (sg_senddiag); and various other functions. See the README, CHANGELOG and COVERAGE files. Requires the linux kernel 2.4 series or later. In the 2.4 series SCSI generic device names (e.g. /dev/sg0) must be used. In the 2.6 series other device names may be used as well (e.g. /dev/sda). Warning and the incorrect usage of them may render your system inoperable.

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

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

sudo dnf -y install sg3_utils

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

sudo yum -y install sg3_utils

How To Uninstall sg3_utils on Fedora 36

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

sudo dnf remove sg3_utils

sg3_utils Package Contents on Fedora 36

/usr/bin/rescan-scsi-bus.sh
/usr/bin/scsi-rescan
/usr/bin/scsi_logging_level
/usr/bin/scsi_mandat
/usr/bin/scsi_readcap
/usr/bin/scsi_ready
/usr/bin/scsi_satl
/usr/bin/scsi_start
/usr/bin/scsi_stop
/usr/bin/scsi_temperature
/usr/bin/sg_bg_ctl
/usr/bin/sg_compare_and_write
/usr/bin/sg_copy_results
/usr/bin/sg_dd
/usr/bin/sg_decode_sense
/usr/bin/sg_emc_trespass
/usr/bin/sg_format
/usr/bin/sg_get_config
/usr/bin/sg_get_elem_status
/usr/bin/sg_get_lba_status
/usr/bin/sg_ident
/usr/bin/sg_inq
/usr/bin/sg_logs
/usr/bin/sg_luns
/usr/bin/sg_map
/usr/bin/sg_map26
/usr/bin/sg_modes
/usr/bin/sg_opcodes
/usr/bin/sg_persist
/usr/bin/sg_prevent
/usr/bin/sg_raw
/usr/bin/sg_rbuf
/usr/bin/sg_rdac
/usr/bin/sg_read
/usr/bin/sg_read_attr
/usr/bin/sg_read_block_limits
/usr/bin/sg_read_buffer
/usr/bin/sg_read_long
/usr/bin/sg_readcap
/usr/bin/sg_reassign
/usr/bin/sg_referrals
/usr/bin/sg_rep_pip
/usr/bin/sg_rep_zones
/usr/bin/sg_requests
/usr/bin/sg_reset
/usr/bin/sg_reset_wp
/usr/bin/sg_rmsn
/usr/bin/sg_rtpg
/usr/bin/sg_safte
/usr/bin/sg_sanitize
/usr/bin/sg_sat_identify
/usr/bin/sg_sat_phy_event
/usr/bin/sg_sat_read_gplog
/usr/bin/sg_sat_set_features
/usr/bin/sg_scan
/usr/bin/sg_seek
/usr/bin/sg_senddiag
/usr/bin/sg_ses
/usr/bin/sg_ses_microcode
/usr/bin/sg_start
/usr/bin/sg_stpg
/usr/bin/sg_stream_ctl
/usr/bin/sg_sync
/usr/bin/sg_test_rwbuf
/usr/bin/sg_timestamp
/usr/bin/sg_turs
/usr/bin/sg_unmap
/usr/bin/sg_verify
/usr/bin/sg_vpd
/usr/bin/sg_wr_mode
/usr/bin/sg_write_buffer
/usr/bin/sg_write_long
/usr/bin/sg_write_same
/usr/bin/sg_write_verify
/usr/bin/sg_write_x
/usr/bin/sg_xcopy
/usr/bin/sg_zone
/usr/bin/sginfo
/usr/bin/sgm_dd
/usr/bin/sgp_dd
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/28cd666548537a58e4a1b53439dcfbd9fa2d47
/usr/lib/.build-id/01
/usr/lib/.build-id/01/2668910bfd51be63c8f78e95048df9a5a5e261
/usr/lib/.build-id/07
/usr/lib/.build-id/07/351664b4e7a732ed9bd59a2a1a3385e102e4ae
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/426717b117521358ff0825b030d38c32d3cc8d
/usr/lib/.build-id/0c/d3bd633252add010e5b881a945c73a9bfe5002
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/3c656185552547336c6bbe5bc6b15e08c3fac0
/usr/lib/.build-id/0d/ad843c9aa9a408500990f9ba90f839e09f5720
/usr/lib/.build-id/11
/usr/lib/.build-id/11/0c8245e127a0d7b21f957890aa94144e4fb186
/usr/lib/.build-id/13
/usr/lib/.build-id/13/6820ffc1f57fc2edada65b786b19a65d20548c
/usr/lib/.build-id/17
/usr/lib/.build-id/17/256152dff894a17ff78a3bba5c2805bb67860b
/usr/lib/.build-id/17/dc876e72f48a1ab2c46c719e36ea27361cc92a
/usr/lib/.build-id/18
/usr/lib/.build-id/18/3cd3dbddecc81f9d1b2dac6237d9ca98bdba16
/usr/lib/.build-id/21
/usr/lib/.build-id/21/bff78302128651b2e29f8b20af8b9297caaf36
/usr/lib/.build-id/26
/usr/lib/.build-id/26/6231f1510509fca85831f89003c7df17755bd3
/usr/lib/.build-id/27
/usr/lib/.build-id/27/19898928c9ef9a044595810afc74e5bc7ec957
/usr/lib/.build-id/30
/usr/lib/.build-id/30/58b43c609ce506f0f028dc717aaa02551cecc4
/usr/lib/.build-id/31
/usr/lib/.build-id/31/92a33a4f8ee45a6485438efe16e0efcb3b6bee
/usr/lib/.build-id/31/aac12a33424af833775d8dcf89a17812690290
/usr/lib/.build-id/36
/usr/lib/.build-id/36/3ab000cf528789c49258c240b99e9a3a48931d
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/4ecc88b27a4d9e57bae036987cd4d3a9fd45d8
/usr/lib/.build-id/40
/usr/lib/.build-id/40/a66d6cea96f8b00191fb5d790c730555fa2ff5
/usr/lib/.build-id/43
/usr/lib/.build-id/43/12fcb20d1221c34127326fd49f548657c727a6
/usr/lib/.build-id/43/d42681f49532e474af757931e81d3ddd66edeb
/usr/lib/.build-id/45
/usr/lib/.build-id/45/2e223344b10588127fcf0d0b895d6de049d764
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/a3cec0292029e4913773d8cdd13fe1d55827b1
/usr/lib/.build-id/51
/usr/lib/.build-id/51/583053b076465bb73eb59ee384690f85cb370d
/usr/lib/.build-id/59
/usr/lib/.build-id/59/b321f1e4055f340cfe311d5d5ab301764b271d
/usr/lib/.build-id/64
/usr/lib/.build-id/64/0002a673f660b97035851c18f5826f92e198b8
/usr/lib/.build-id/64/2bcc4fad87f01a2e432bbd37fa0230e897fbe2
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/6cad3a251ca22253dfc497f6d2d900663a5bb8
/usr/lib/.build-id/73
/usr/lib/.build-id/73/79e61fb649607d35c8e917a07ed864d8203d19
/usr/lib/.build-id/76
/usr/lib/.build-id/76/422549b8d4644fb0ef7d124de09bc13dab7b8f
/usr/lib/.build-id/78
/usr/lib/.build-id/78/350c34a3547e380fde16ab27d8ef630a4d0239
/usr/lib/.build-id/79
/usr/lib/.build-id/79/130ce98b6041875d9537475b5dec71c06f354a
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/62284625fbbfcdf2c0944e12097bae3be32be7
/usr/lib/.build-id/86
/usr/lib/.build-id/86/5c77dc919d3fd476538889701b67619266404f
/usr/lib/.build-id/87
/usr/lib/.build-id/87/50361ffc3b5fe5b27539d96d88a0ab2fdb4024
/usr/lib/.build-id/87/58139bb90dd2bb79e11c949a66ce0b07525f92
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/61803fe51eff2df12e6b365ea5dc2e8f99379b
/usr/lib/.build-id/90
/usr/lib/.build-id/90/a1369533ffc40ad85995f87475dd38e4e4ec0f
/usr/lib/.build-id/96
/usr/lib/.build-id/96/2d91bcd2744b3f3a533b864e12c96c1d5463f5
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/972824f8cc350cdc0004d090c1b22abafd26ac
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/dd55bb01503e2b98009e36b5312cc8064688d1
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/1b696a75a7cfffcedb30e5bcb7e3f51e206d3c
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/0471de70615f53eac3ce5311229eee43d01ba8
/usr/lib/.build-id/9f/6bfdc28c8a2a59299a02301bfd624ed7be5ece
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/ba4097981ed602e922e63ab11a25e62f018912
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/9bcf54eac67e139831e44ab8502428d10205a6
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/cb95986b7bb1630896cffc356b5a250a6d4a94
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/d6d3b7cbf4572e17a8b240cc6264c7ee84f1bc
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/acb82e4b9d1779c1587c5b1f5ac0f5261853cf
/usr/lib/.build-id/b1/b671e5556c21028f9953e99851fbcdc1dcfbca
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/730074abd9139430253d77332eff8b164cf7b4
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/6e7b4f1667c576be7cd73f87020794c1aca986
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/171d35691c5a24fa3ce37501662d6acf13bbb3
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/acd64dc898129ce519495c495f31f911dff7c0
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/3e8f7b713207fac7471a07af28f9681ea0746f
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/80e3d3957c364f8d02df3556b8ec7bd276fb17
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/a00ff7d713bde8fa2766ac06bd4080205b81af
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/071e07aea2d238550cee7569eb334581d358b0
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/a85c0a2017bd8fddd3b6f205c2a605f140826f
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/81fccbce8d08f063635eca9bd93af44ef3a09d
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/ce7aa84f5f6344d5290c6d8973a319ecd2e9e5
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/0afdef04291687b8ee9c7e0bb7c353e37efcfe
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/d378ce111acb40edbb7309eaddba4190d3495f
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/d5a2e7dbe45c08ae9105f89e9bfa7fb8d76c46
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/e9a03f5c1ad3209ec52eca0055c48cec53103f
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/265957414d88264de46a79a1e9e644f03b3656
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/5693e35a034d4f75a77b58da2c9b2beee71dbb
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/d3018cc07e755feb9847dc1e486a5ba48c3166
/usr/lib/udev/fc_wwpn_id
/usr/lib/udev/rules.d/40-usb-blacklist.rules
/usr/lib/udev/rules.d/61-scsi-sg3_id.rules
/usr/lib/udev/rules.d/63-fc-wwpn-id.rules
/usr/lib/udev/rules.d/63-scsi-sg3_symlink.rules
/usr/lib/udev/rules.d/65-scsi-cciss_id.rules
/usr/share/doc/sg3_utils
/usr/share/doc/sg3_utils/AUTHORS
/usr/share/doc/sg3_utils/BSD_LICENSE
/usr/share/doc/sg3_utils/COPYING
/usr/share/doc/sg3_utils/COVERAGE
/usr/share/doc/sg3_utils/CREDITS
/usr/share/doc/sg3_utils/ChangeLog
/usr/share/doc/sg3_utils/README
/usr/share/doc/sg3_utils/README.sg_start
/usr/share/man/man8/rescan-scsi-bus.sh.8.gz
/usr/share/man/man8/scsi-rescan.8.gz
/usr/share/man/man8/scsi_logging_level.8.gz
/usr/share/man/man8/scsi_mandat.8.gz
/usr/share/man/man8/scsi_readcap.8.gz
/usr/share/man/man8/scsi_ready.8.gz
/usr/share/man/man8/scsi_satl.8.gz
/usr/share/man/man8/scsi_start.8.gz
/usr/share/man/man8/scsi_stop.8.gz
/usr/share/man/man8/scsi_temperature.8.gz
/usr/share/man/man8/sg3_utils.8.gz
/usr/share/man/man8/sg_bg_ctl.8.gz
/usr/share/man/man8/sg_compare_and_write.8.gz
/usr/share/man/man8/sg_copy_results.8.gz
/usr/share/man/man8/sg_dd.8.gz
/usr/share/man/man8/sg_decode_sense.8.gz
/usr/share/man/man8/sg_emc_trespass.8.gz
/usr/share/man/man8/sg_format.8.gz
/usr/share/man/man8/sg_get_config.8.gz
/usr/share/man/man8/sg_get_elem_status.8.gz
/usr/share/man/man8/sg_get_lba_status.8.gz
/usr/share/man/man8/sg_ident.8.gz
/usr/share/man/man8/sg_inq.8.gz
/usr/share/man/man8/sg_logs.8.gz
/usr/share/man/man8/sg_luns.8.gz
/usr/share/man/man8/sg_map.8.gz
/usr/share/man/man8/sg_map26.8.gz
/usr/share/man/man8/sg_modes.8.gz
/usr/share/man/man8/sg_opcodes.8.gz
/usr/share/man/man8/sg_persist.8.gz
/usr/share/man/man8/sg_prevent.8.gz
/usr/share/man/man8/sg_raw.8.gz
/usr/share/man/man8/sg_rbuf.8.gz
/usr/share/man/man8/sg_rdac.8.gz
/usr/share/man/man8/sg_read.8.gz
/usr/share/man/man8/sg_read_attr.8.gz
/usr/share/man/man8/sg_read_block_limits.8.gz
/usr/share/man/man8/sg_read_buffer.8.gz
/usr/share/man/man8/sg_read_long.8.gz
/usr/share/man/man8/sg_readcap.8.gz
/usr/share/man/man8/sg_reassign.8.gz
/usr/share/man/man8/sg_referrals.8.gz
/usr/share/man/man8/sg_rep_pip.8.gz
/usr/share/man/man8/sg_rep_zones.8.gz
/usr/share/man/man8/sg_requests.8.gz
/usr/share/man/man8/sg_reset.8.gz
/usr/share/man/man8/sg_reset_wp.8.gz
/usr/share/man/man8/sg_rmsn.8.gz
/usr/share/man/man8/sg_rtpg.8.gz
/usr/share/man/man8/sg_safte.8.gz
/usr/share/man/man8/sg_sanitize.8.gz
/usr/share/man/man8/sg_sat_identify.8.gz
/usr/share/man/man8/sg_sat_phy_event.8.gz
/usr/share/man/man8/sg_sat_read_gplog.8.gz
/usr/share/man/man8/sg_sat_set_features.8.gz
/usr/share/man/man8/sg_scan.8.gz
/usr/share/man/man8/sg_seek.8.gz
/usr/share/man/man8/sg_senddiag.8.gz
/usr/share/man/man8/sg_ses.8.gz
/usr/share/man/man8/sg_ses_microcode.8.gz
/usr/share/man/man8/sg_start.8.gz
/usr/share/man/man8/sg_stpg.8.gz
/usr/share/man/man8/sg_stream_ctl.8.gz
/usr/share/man/man8/sg_sync.8.gz
/usr/share/man/man8/sg_test_rwbuf.8.gz
/usr/share/man/man8/sg_timestamp.8.gz
/usr/share/man/man8/sg_turs.8.gz
/usr/share/man/man8/sg_unmap.8.gz
/usr/share/man/man8/sg_verify.8.gz
/usr/share/man/man8/sg_vpd.8.gz
/usr/share/man/man8/sg_wr_mode.8.gz
/usr/share/man/man8/sg_write_buffer.8.gz
/usr/share/man/man8/sg_write_long.8.gz
/usr/share/man/man8/sg_write_same.8.gz
/usr/share/man/man8/sg_write_verify.8.gz
/usr/share/man/man8/sg_write_x.8.gz
/usr/share/man/man8/sg_xcopy.8.gz
/usr/share/man/man8/sg_zone.8.gz
/usr/share/man/man8/sginfo.8.gz
/usr/share/man/man8/sgm_dd.8.gz
/usr/share/man/man8/sgp_dd.8.gz

References

Summary

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