【Linux】bash: wget: command not found
问题描述
找不到命令的原因是缺少软件包,可通过查找然后安装对应的软件包即可,适用于所有command not found
的情况(前提是软件仓库收录了这个软件包)。
如输入wget
提示命令不存在:
解决方法
1. Centos
CentOS可通过yum provides
查找对应软件包:
此时再通过yum install
安装即可(版本号可省略)。
2. Ubuntu
Ubuntu可根据智能提示安装:
也可以通过apt-cache search
查看更详细的介绍:
同理再apt-get install
即可。