At work, I often encounter a problem where I want to use a command machine without installing it, but I don't know which package the command is in (the source code compilation is no longer within the scope of this article ), the following describes a stupid method that can help us solve this problem. Note: Blue = command name light green = command parameter light blue = Option &
At work, I often encounter a problem where I want to use a command machine without installing it, but I don't know which package the command is in (the source code compilation is no longer within the scope of this article ), the following describes a stupid method that can help us solve this problem.
Note: Blue = command name
Light green = command parameters
Light blue = Option
Purple = Directory
System environment: CentOS 6.2 i686
Run yum provides */bin/sar on the sub-host with commands installed. (change the command path to the command you want to search)
From the results, we can clearly see that the sysstat-9.0.4-18.el6.i686 is the package we are looking for, and then directly use yuminstall sysstat on the machine that wants to use sar.