How To Install sg3_utils on Rocky Linux 8

In this tutorial we learn how to install sg3_utils on Rocky Linux 8. sg3_utils is Utilities for devices that use SCSI command sets

Introduction

In this tutorial we learn how to install sg3_utils on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install sg3_utils.

Install sg3_utils on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8

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

sudo dnf remove sg3_utils

sg3_utils Package Contents on Rocky Linux 8

/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_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_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/5d90d1ac765cf7b5358a12e2f14d721a4516c1
/usr/lib/.build-id/05
/usr/lib/.build-id/05/768cbfca44eb3cac7b42b10d20f7a58086d134
/usr/lib/.build-id/06
/usr/lib/.build-id/06/1447b668bd4b3cad2520807ec896b4d5c15bda
/usr/lib/.build-id/06/e56a19ceb8a1ef5bf1445fd2bb6a362d3962d2
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/8a4cdbcc3b6fe3347e8aea38531e559867d827
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/d6fc842f9da2c4fb045199d363405ce3f6b6bc
/usr/lib/.build-id/10
/usr/lib/.build-id/10/098ded85c0060cbc440da3eceb9e1ec1f8b4d3
/usr/lib/.build-id/13
/usr/lib/.build-id/13/08881cfcd9ed554e889af7c4dcfea0ef46a196
/usr/lib/.build-id/14
/usr/lib/.build-id/14/d19b1b4cca07fb78bab5e08b1bee86f224f37b
/usr/lib/.build-id/16
/usr/lib/.build-id/16/2954866282eeba0cab9d971cd14c65571d5036
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/441f2b7eac499891aafa7b4df8b6fc9fbeb66d
/usr/lib/.build-id/1c/95a0d33b4978e7594ea69f580321559f484703
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/4100d9aee35c81b2b431b4f6f7cdc7cdc083a3
/usr/lib/.build-id/25
/usr/lib/.build-id/25/b4e463982226b79495e7513437d52b22c8e9b9
/usr/lib/.build-id/26
/usr/lib/.build-id/26/7decf29d396a65759d7a6f054cffcdce8c5f98
/usr/lib/.build-id/27
/usr/lib/.build-id/27/fa90d78d14d6c37322f93548d9ae7a02570693
/usr/lib/.build-id/33
/usr/lib/.build-id/33/1d30f4efc213d0b4d9976791eb0b909be63c19
/usr/lib/.build-id/35
/usr/lib/.build-id/35/4729c9f70ef5b09105020d0dfdf63063caf316
/usr/lib/.build-id/38
/usr/lib/.build-id/38/deb11dfd0c734f75dcc01080a090f8e769c5fd
/usr/lib/.build-id/39
/usr/lib/.build-id/39/24f317ccfb3022250bdc17d59db3695866070e
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/0e618bd63fca13690d13159089c1548fed3587
/usr/lib/.build-id/41
/usr/lib/.build-id/41/2186702b9f0e3e35ae3c1bfaca54f8a429c54a
/usr/lib/.build-id/44
/usr/lib/.build-id/44/54d48a130e052790205c3821a810c4e345a6fc
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/114fab5f21e7965cab0fd6e34d128e9288be2a
/usr/lib/.build-id/54
/usr/lib/.build-id/54/bf8bb500eaebd62546f7b40590ec3db54e3bd3
/usr/lib/.build-id/56
/usr/lib/.build-id/56/54b5f17d535349385c74e2fe3dade90e5a7752
/usr/lib/.build-id/58
/usr/lib/.build-id/58/51ed45bc4e176c7950aedcca33aef2daaf760c
/usr/lib/.build-id/59
/usr/lib/.build-id/59/3511c76a7cf97c6e63814028b750785b6f1659
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/987e7a212b78cbc7d6a36f7f04966974c525be
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/5ef9b3d3c13ed834673f0929d7976f3abba316
/usr/lib/.build-id/61
/usr/lib/.build-id/61/2f2b4750f4bdbebb5c0168eef3fed8c294a831
/usr/lib/.build-id/62
/usr/lib/.build-id/62/37574059d1cd9f6ec783a478a9bc7385c2b314
/usr/lib/.build-id/66
/usr/lib/.build-id/66/eb48a6773e93847757f98dd1d3b5da8180321c
/usr/lib/.build-id/74
/usr/lib/.build-id/74/177d17483b998379f94eda0f3d87005063755a
/usr/lib/.build-id/74/42145bd9f84a39869e27fdcaf5fc33ed5576e1
/usr/lib/.build-id/79
/usr/lib/.build-id/79/44dac2c9fdded7108dc3bc40c9e183309cb24b
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/bd512117e221ad9c8015b9776a6a74eaebb9b7
/usr/lib/.build-id/7f/c2f267b8a7a94ac82dbb6bade559faed035d26
/usr/lib/.build-id/88
/usr/lib/.build-id/88/15d45633c34a94596e7164efa56a008eec0c32
/usr/lib/.build-id/88/2b89d72cdb9adf23c85e6d67b295aaf1557507
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/94f291a0e2f6741d47e98a3e552dff52f9cadf
/usr/lib/.build-id/90
/usr/lib/.build-id/90/ac90976095fce09e337c14603b6fad799dd451
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/85e3ec66ef0a749c65da160598d5d7568042e4
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/8473ba014fa55ab135d2cf785958fdace96c00
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/9c3843570fdd25c3406ea6288c8dbb49468a48
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/07112491414f168eb2bbc21cc2032095ad9512
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/104037e833ac5626eff839728f9aa17d1223b1
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/b4cfb6f657193761dbe75b8616fb6fa5797c24
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/60a7784fe685ba527d68f767ed8ae86d848e94
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/411617012f1dc71e65c78a6c1e9e6296606717
/usr/lib/.build-id/be
/usr/lib/.build-id/be/2700d88e010f56aebfdd823ab3fa561719b96a
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/3a2104c337036c702aa5665f9e822b80fc22ea
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/949689b4ffba535d3529ad5cce4eea5b088f59
/usr/lib/.build-id/d0/f467aa70944dff6d65a5956033bdaed44f19e1
/usr/lib/.build-id/da
/usr/lib/.build-id/da/345c9e326427ea79eaddab2c6bc6b7d5dec515
/usr/lib/.build-id/da/9e7955cd78cda2c3ea2ac021b87b456a22b200
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/9411068de27fb7d8511b50f397d02561497aa2
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/3ef006e4c01a349ff3a88e77eb332c24cde67d
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/ce5fd07eafb74df4586b94475059afcfa55530
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/52a2bcda93ea9761df891821cccdf49bb0d980
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/e2d449543d821178d499cd321fc726228f4fc6
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/950e3cde9c0bced5a182ef7d65e578a89785a0
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/43ae8c5ea192477cc306c2acef30aa464bac2b
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/33f5318ce9e2dba0ec61b1cc9889202d3b7b6a
/usr/lib/.build-id/f7/5465e96b377c69af4dd0fbc9f6497073bff00d
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/245c4996e7a792944d042b21dfbbd1904e4b47
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/4428871ef2f0b681ba2f619debc19001b05aa0
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/2ba075a427985bbaae4de5b3192d3eeabac4cd
/usr/lib/udev/fc_wwpn_id
/usr/lib/udev/rules.d
/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/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_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_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 Rocky Linux 8 using yum and dnf.