Centos command-based query of the package

Source: Internet
Author: User


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.5
 
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 Yum install sysstat on the machine that wants to use SAR.

Centos command-based query of the package

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.