当前位置:   article > 正文

Linux基础:yum provides 查询某个程序所在安装包

yum provides

已知apache 的一个压测工具名为:ab,但是不知道应该安装那个安装包的情况,使用yum provides指令参考如下:

  1. # yum provides ab
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. base | 3.6 kB 00:00:00
  5. epel | 4.7 kB 00:00:00
  6. extras | 3.4 kB 00:00:00
  7. updates | 3.4 kB 00:00:00
  8. (1/4): extras/7/x86_64/primary_db | 188 kB 00:00:00
  9. (2/4): epel/x86_64/updateinfo | 988 kB 00:00:00
  10. (3/4): epel/x86_64/primary_db | 6.7 MB 00:00:00
  11. (4/4): updates/7/x86_64/primary_db | 3.4 MB 00:00:00
  12. epel/x86_64/filelists_db | 11 MB 00:00:00
  13. extras/7/x86_64/filelists_db | 236 kB 00:00:00
  14. updates/7/x86_64/filelists_db | 3.0 MB 00:00:00
  15. httpd-tools-2.4.6-88.el7.centos.x86_64 : Tools for use with the Apache HTTP Server
  16. Repo : base
  17. Matched from:
  18. Filename : /usr/bin/ab

查询到安装包为:httpd-tools

直接安装:

  1. # yum install httpd-tools -y
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. Resolving Dependencies
  5. --> Running transaction check
  6. ---> Package httpd-tools.x86_64 0:2.4.6-88.el7.centos will be installed
  7. --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-tools-2.4.6-88.el7.centos.x86_64
  8. --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-tools-2.4.6-88.el7.centos.x86_64
  9. --> Running transaction check
  10. ---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed
  11. ---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
  12. --> Finished Dependency Resolution
  13. Dependencies Resolved
  14. ====================================================================================================
  15. Package Arch Version Repository Size
  16. ====================================================================================================
  17. Installing:
  18. httpd-tools x86_64 2.4.6-88.el7.centos base 90 k
  19. Installing for dependencies:
  20. apr x86_64 1.4.8-3.el7_4.1 base 103 k
  21. apr-util x86_64 1.5.2-6.el7 base 92 k
  22. Transaction Summary
  23. ====================================================================================================
  24. Install 1 Package (+2 Dependent packages)
  25. Total download size: 286 k
  26. Installed size: 584 k
  27. Downloading packages:
  28. (1/3): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00:00
  29. (2/3): httpd-tools-2.4.6-88.el7.centos.x86_64.rpm | 90 kB 00:00:00
  30. (3/3): apr-1.4.8-3.el7_4.1.x86_64.rpm | 103 kB 00:00:02
  31. ----------------------------------------------------------------------------------------------------
  32. Total 106 kB/s | 286 kB 00:00:02
  33. Running transaction check
  34. Running transaction test
  35. Transaction test succeeded
  36. Running transaction
  37. Installing : apr-1.4.8-3.el7_4.1.x86_64 1/3
  38. Installing : apr-util-1.5.2-6.el7.x86_64 2/3
  39. Installing : httpd-tools-2.4.6-88.el7.centos.x86_64 3/3
  40. Verifying : httpd-tools-2.4.6-88.el7.centos.x86_64 1/3
  41. Verifying : apr-util-1.5.2-6.el7.x86_64 2/3
  42. Verifying : apr-1.4.8-3.el7_4.1.x86_64 3/3
  43. Installed:
  44. httpd-tools.x86_64 0:2.4.6-88.el7.centos
  45. Dependency Installed:
  46. apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7
  47. Complete!

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/180959
推荐阅读
相关标签
  

闽ICP备14008679号