Table of contents
1. Find which rpm package a command belongs to
2.2. Use the yum provides command
Second, view information about a package
3. View all installation files of a package
Fourth, view the location of a package
1. Find which rpm package a command belongs to
1.1. Use the rpm command
First, you need to find the location of a certain command. For example, the sar command here is in the location /usr/bin/sar, and then use the rpm command to find that the sar command belongs to the sysstat package.
2.2. Use the yum provides command
Second, view information about a package
3. View all installation files of a package
rpm -ql sysstat-12.5.4-3.el9.x86_64
Fourth, view the location of a package