centos系统 通过命名查找需要安装哪个安装包 command not found

2023-05-25,,

场景:

服务器未安装命令,但是我们需要使用,不知道该安装什么包,以sz命令为例

[root@localhost linshi]# sz tes.sh
-bash: /usr/bin/sz: 没有那个文件或目录

步骤一:

查找属于哪个安装包

[root@localhost linshi]# yum search sz
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
========================================================================================== N/S matched: lrzsz ===========================================================================================
lrzsz.x86_64 : The lrz and lsz modem communications programs 名称和简介匹配 only,使用“search all”试试。

步骤二:安装对应的安装包

[root@localhost linshi]# yum -y install lrzsz*

再次使用,正常

[root@localhost home]# sz tes.sh

centos系统 通过命名查找需要安装哪个安装包 command not found的相关教程结束。

《centos系统 通过命名查找需要安装哪个安装包 command not found.doc》

下载本文的Word格式文档,以方便收藏与打印。