如何安装 sg3_utils-devel CentOS 8

sg3_utils-devel 是 sg3_utils 库的开发库和头文件 sg3_utils 库的开发库和头文件

介绍

在本教程中我们学习如何安装 sg3_utils-devel 在 CentOS 8.

什么是 sg3_utils-devel

该软件包包含 sg3_utils 库及其用于开发应用程序的头文件。 sg3_utils-devel 1.44 5.el8 x86_64 48 k sg3_utils-1.44-5.el8.src.rpm powertools sg3_utils 库的开发库和头文件 http GPLv2+ 和 BSD 该软件包包含 sg3_utils 库及其用于开发应用程序的头文件。

我们可以用 yum 或者 dnf 安装 sg3_utils-devel 在 CentOS 8. 在本教程中,我们讨论这两种方法,但您只需选择一种方法来安装 sg3_utils-devel。

安装 sg3_utils-devel CentOS 8 使用dnf

更新 yum 数据库 dnf 使用以下命令。

sudo dnf makecache --refresh

输出应如下所示:

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.

更新 yum 数据库后,我们可以安装 sg3_utils-devel 使用 dnf 通过运行以下命令:

sudo dnf -y install sg3_utils-devel

安装 sg3_utils-devel CentOS 8 使用百胜

更新 yum 数据库 yum 使用以下命令。

sudo yum makecache --refresh

输出应如下所示:

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.

更新 yum 数据库后,我们可以安装 sg3_utils-devel 使用 yum 通过运行以下命令:

sudo yum -y install sg3_utils-devel

如何卸载 sg3_utils-devel CentOS 8

仅卸载 sg3_utils-devel 打包我们可以使用以下命令:

sudo dnf remove sg3_utils-devel

sg3_utils-devel 包内容 CentOS 8

/usr/include/scsi/sg_cmds.h
/usr/include/scsi/sg_cmds_basic.h
/usr/include/scsi/sg_cmds_extra.h
/usr/include/scsi/sg_cmds_mmc.h
/usr/include/scsi/sg_io_linux.h
/usr/include/scsi/sg_lib.h
/usr/include/scsi/sg_lib_data.h
/usr/include/scsi/sg_linux_inc.h
/usr/include/scsi/sg_pr2serr.h
/usr/include/scsi/sg_pt.h
/usr/include/scsi/sg_pt_linux.h
/usr/include/scsi/sg_pt_nvme.h
/usr/include/scsi/sg_unaligned.h
/usr/lib/libsgutils2.so
/usr/include/scsi/sg_cmds.h
/usr/include/scsi/sg_cmds_basic.h
/usr/include/scsi/sg_cmds_extra.h
/usr/include/scsi/sg_cmds_mmc.h
/usr/include/scsi/sg_io_linux.h
/usr/include/scsi/sg_lib.h
/usr/include/scsi/sg_lib_data.h
/usr/include/scsi/sg_linux_inc.h
/usr/include/scsi/sg_pr2serr.h
/usr/include/scsi/sg_pt.h
/usr/include/scsi/sg_pt_linux.h
/usr/include/scsi/sg_pt_nvme.h
/usr/include/scsi/sg_unaligned.h
/usr/lib64/libsgutils2.so

参考

概括

在本教程中我们学习如何安装 sg3_utils-devel 在 CentOS 8 使用 yum 和 dnf。