How To Install pciutils.x86_64 on Amazon Linux 2

In this tutorial we learn how to install pciutils.x86_64 in Amazon Linux 2. pciutils.x86_64 is PCI bus related utilities

Introduction

In this tutorial we learn how to install pciutils.x86_64 on Amazon Linux 2.

What is pciutils.x86_64

The pciutils package contains various utilities for inspecting and setting devices connected to the PCI bus. The utilities provided require kernel version 2.1.82 or newer (which support the /proc/bus/pci interface).

We can use yum to install pciutils.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install pciutils.x86_64.

Install pciutils.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pciutils.x86_64 using yum by running the following command:

sudo yum -y install pciutils.x86_64

How To Uninstall pciutils.x86_64 on Amazon Linux 2

To uninstall only the pciutils.x86_64 package we can use the following command:

sudo yum remove pciutils.x86_64

pciutils.x86_64 Package Contents on Amazon Linux 2

/usr/sbin/lspci
/usr/sbin/setpci
/usr/sbin/update-pciids
/usr/share/doc/pciutils-3.5.1
/usr/share/doc/pciutils-3.5.1/COPYING
/usr/share/doc/pciutils-3.5.1/ChangeLog
/usr/share/doc/pciutils-3.5.1/README
/usr/share/doc/pciutils-3.5.1/pciutils.lsm
/usr/share/man/man8/lspci.8.gz
/usr/share/man/man8/setpci.8.gz
/usr/share/man/man8/update-pciids.8.gz

References

Summary

In this tutorial we learn how to install pciutils.x86_64 on Amazon Linux 2 using yum.