How To Install mstflint on CentOS 8

mstflint is Mellanox firmware burning tool

Introduction

In this tutorial we learn how to install mstflint on CentOS 8.

What is mstflint

This package contains firmware update tool, vpd dump and register dump tools for network adapters based on Mellanox Technologies chips.

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

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

sudo dnf -y install mstflint

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

sudo yum -y install mstflint

How To Uninstall mstflint on CentOS 8

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

sudo dnf remove mstflint

mstflint Package Contents on CentOS 8

/etc/mstflint
/etc/mstflint/ca-bundle.crt
/usr/bin/mstarchive
/usr/bin/mstconfig
/usr/bin/mstcongestion
/usr/bin/mstflint
/usr/bin/mstfwmanager
/usr/bin/mstfwreset
/usr/bin/mstfwtrace
/usr/bin/mstmcra
/usr/bin/mstmread
/usr/bin/mstmtserver
/usr/bin/mstmwrite
/usr/bin/mstprivhost
/usr/bin/mstregdump
/usr/bin/mstresourcedump
/usr/bin/mstresourceparse
/usr/bin/mstvpd
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/9c35164ee0f930342671dc6b31c7bb9684436c
/usr/lib/.build-id/65
/usr/lib/.build-id/65/8d45d64962e8f73e4fcbdccb626ea578b95c02
/usr/lib/.build-id/78
/usr/lib/.build-id/78/658199d8a8d4d8001ed7cfd580177038be8378
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/940c58974b1ba3e4d0bb0431b34ad9e2993f25
/usr/lib/.build-id/84
/usr/lib/.build-id/84/cf8d94a8c7ea607f8fbde9c6aa113fb2507eea
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/481207cbaa1916b4d7fd2728d9d7cbb0a568e1
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/76e994b1464270cf694b3ce009dff762cad294
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/41696b17d5bd6fcc7d1ca1ccad04083114d5a0
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/01d84163ea3a9bcb999733134158350dd3a243
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/f7eca47c6a5ced8010a22722c3b7e0ff5e5af3
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/f44f3d67f3d2c80c6debf14f6c4afe12e7aaf8
/usr/lib64/mstflint
/usr/lib64/mstflint/python_tools
/usr/lib64/mstflint/python_tools/c_dev_mgt.so
/usr/lib64/mstflint/python_tools/ccmdif.so
/usr/lib64/mstflint/python_tools/cmdif.py
/usr/lib64/mstflint/python_tools/cmtcr.so
/usr/lib64/mstflint/python_tools/dev_mgt.py
/usr/lib64/mstflint/python_tools/mft_logger.py
/usr/lib64/mstflint/python_tools/mlxpci
/usr/lib64/mstflint/python_tools/mlxpci/binary_file.py
/usr/lib64/mstflint/python_tools/mlxpci/mlxpci_lib.py
/usr/lib64/mstflint/python_tools/mstfwreset
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/__init__.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/cmd_reg_mcam.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/cmd_reg_mfrl.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/cmd_reg_mpcir.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/logger.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/mcra.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/mlnx_peripheral_components.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/mlxfwreset_mlnxdriver.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/mlxfwreset_status_checker.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/mlxfwreset_utils.py
/usr/lib64/mstflint/python_tools/mstfwreset/mlxfwresetlib/pci_device.py
/usr/lib64/mstflint/python_tools/mstfwreset/mstfwreset.py
/usr/lib64/mstflint/python_tools/mstfwtrace
/usr/lib64/mstflint/python_tools/mstfwtrace/fw_trace_utilities.py
/usr/lib64/mstflint/python_tools/mstfwtrace/mstfwtrace.py
/usr/lib64/mstflint/python_tools/mstfwtrace/secure_fw_trace.py
/usr/lib64/mstflint/python_tools/mstprivhost
/usr/lib64/mstflint/python_tools/mstprivhost/mstprivhost.py
/usr/lib64/mstflint/python_tools/mstresourcedump
/usr/lib64/mstflint/python_tools/mstresourcedump/__init__.py
/usr/lib64/mstflint/python_tools/mstresourcedump/commands
/usr/lib64/mstflint/python_tools/mstresourcedump/commands/CommandFactory.py
/usr/lib64/mstflint/python_tools/mstresourcedump/commands/DumpCommand.py
/usr/lib64/mstflint/python_tools/mstresourcedump/commands/QueryCommand.py
/usr/lib64/mstflint/python_tools/mstresourcedump/commands/ResDumpCommand.py
/usr/lib64/mstflint/python_tools/mstresourcedump/commands/__init__.py
/usr/lib64/mstflint/python_tools/mstresourcedump/fetchers
/usr/lib64/mstflint/python_tools/mstresourcedump/fetchers/CapabilityFetcher.py
/usr/lib64/mstflint/python_tools/mstresourcedump/fetchers/ResourceDumpFetcher.py
/usr/lib64/mstflint/python_tools/mstresourcedump/fetchers/__init__.py
/usr/lib64/mstflint/python_tools/mstresourcedump/filters
/usr/lib64/mstflint/python_tools/mstresourcedump/filters/SegmentsFilter.py
/usr/lib64/mstflint/python_tools/mstresourcedump/filters/__init__.py
/usr/lib64/mstflint/python_tools/mstresourcedump/mstresourcedump.py
/usr/lib64/mstflint/python_tools/mstresourcedump/resource_data
/usr/lib64/mstflint/python_tools/mstresourcedump/resource_data/DataPrinter.py
/usr/lib64/mstflint/python_tools/mstresourcedump/resource_data/DumpData.py
/usr/lib64/mstflint/python_tools/mstresourcedump/resource_data/QueryData.py
/usr/lib64/mstflint/python_tools/mstresourcedump/resource_data/__init__.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/CommandSegment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/ErrorSegment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/InfoSegment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/MenuRecord.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/MenuSegment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/NoticeSegment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/RefSegment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/ResourceSegment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/Segment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/SegmentCreator.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/SegmentFactory.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/TerminateSegment.py
/usr/lib64/mstflint/python_tools/mstresourcedump/segments/__init__.py
/usr/lib64/mstflint/python_tools/mstresourcedump/utils
/usr/lib64/mstflint/python_tools/mstresourcedump/utils/Exceptions.py
/usr/lib64/mstflint/python_tools/mstresourcedump/utils/__init__.py
/usr/lib64/mstflint/python_tools/mstresourcedump/utils/constants.py
/usr/lib64/mstflint/python_tools/mstresourcedump/validation
/usr/lib64/mstflint/python_tools/mstresourcedump/validation/ArgToMenuVerifier.py
/usr/lib64/mstflint/python_tools/mstresourcedump/validation/CapabilityValidator.py
/usr/lib64/mstflint/python_tools/mstresourcedump/validation/__init__.py
/usr/lib64/mstflint/python_tools/mstresourceparse
/usr/lib64/mstflint/python_tools/mstresourceparse/__init__.py
/usr/lib64/mstflint/python_tools/mstresourceparse/mstresourceparse.py
/usr/lib64/mstflint/python_tools/mstresourceparse/parsers
/usr/lib64/mstflint/python_tools/mstresourceparse/parsers/AdbParser.py
/usr/lib64/mstflint/python_tools/mstresourceparse/parsers/Parser.py
/usr/lib64/mstflint/python_tools/mstresourceparse/parsers/__init__.py
/usr/lib64/mstflint/python_tools/mstresourceparse/resource_data
/usr/lib64/mstflint/python_tools/mstresourceparse/resource_data/AdbData.py
/usr/lib64/mstflint/python_tools/mstresourceparse/resource_data/DataPrinter.py
/usr/lib64/mstflint/python_tools/mstresourceparse/resource_data/RawData.py
/usr/lib64/mstflint/python_tools/mstresourceparse/resource_data/__init__.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/CommandSegment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/ErrorSegment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/InfoSegment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/MenuRecord.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/MenuSegment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/NoticeSegment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/RefSegment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/ResourceSegment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/Segment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/SegmentCreator.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/SegmentFactory.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/TerminateSegment.py
/usr/lib64/mstflint/python_tools/mstresourceparse/segments/__init__.py
/usr/lib64/mstflint/python_tools/mstresourceparse/utils
/usr/lib64/mstflint/python_tools/mstresourceparse/utils/Exceptions.py
/usr/lib64/mstflint/python_tools/mstresourceparse/utils/__init__.py
/usr/lib64/mstflint/python_tools/mstresourceparse/utils/constants.py
/usr/lib64/mstflint/python_tools/mtcr.py
/usr/lib64/mstflint/python_tools/regaccess.py
/usr/lib64/mstflint/python_tools/rreg_access.so
/usr/lib64/mstflint/python_tools/tools_version.py
/usr/share/doc/mstflint
/usr/share/doc/mstflint/README
/usr/share/man/man1/mstarchive.1.gz
/usr/share/man/man1/mstconfig.1.gz
/usr/share/man/man1/mstcongestion.1.gz
/usr/share/man/man1/mstflint.1.gz
/usr/share/man/man1/mstfwmanager.1.gz
/usr/share/man/man1/mstfwreset.1.gz
/usr/share/man/man1/mstfwtrace.1.gz
/usr/share/man/man1/mstlink.1.gz
/usr/share/man/man1/mstmcra.1.gz
/usr/share/man/man1/mstmread.1.gz
/usr/share/man/man1/mstmtserver.1.gz
/usr/share/man/man1/mstmwrite.1.gz
/usr/share/man/man1/mstprivhost.1.gz
/usr/share/man/man1/mstreg.1.gz
/usr/share/man/man1/mstregdump.1.gz
/usr/share/man/man1/mstresourcedump.1.gz
/usr/share/man/man1/mstvpd.1.gz
/usr/share/mstflint
/usr/share/mstflint/BlueField.csv
/usr/share/mstflint/BlueField2.csv
/usr/share/mstflint/ConnectIB.csv
/usr/share/mstflint/ConnectX2.csv
/usr/share/mstflint/ConnectX3.csv
/usr/share/mstflint/ConnectX3Pro.csv
/usr/share/mstflint/ConnectX4.csv
/usr/share/mstflint/ConnectX4LX.csv
/usr/share/mstflint/ConnectX5.csv
/usr/share/mstflint/ConnectX6.csv
/usr/share/mstflint/ConnectX6DX.csv
/usr/share/mstflint/ConnectX6LX.csv
/usr/share/mstflint/ConnectX7.csv
/usr/share/mstflint/InfiniScaleIV.csv
/usr/share/mstflint/Quantum.csv
/usr/share/mstflint/Spectrum.csv
/usr/share/mstflint/Spectrum3.csv
/usr/share/mstflint/SwitchIB.csv
/usr/share/mstflint/SwitchIB2.csv
/usr/share/mstflint/SwitchX.csv
/usr/share/mstflint/mlxconfig_dbs
/usr/share/mstflint/mlxconfig_dbs/mlxconfig_host.db
/usr/share/mstflint/mlxconfig_dbs/mlxconfig_switch.db

References

Summary

In this tutorial we learn how to install mstflint on CentOS 8 using yum and dnf.