LInux下bash: wget: command not found解决方法

在Linux下使用wget命令下载东西时出现

-bash: wget: command not found

有两个解决方案:

1、直接在虚拟机下运行以下代码,直接安装,方便快捷:yum安装

yum -y install wget

2、由于我的yum命令也不好使,于是有了第二种解决方案:rpm安装

rpm 下载源地址:http://mirrors.163.com/centos/6.2/os/x86_64/Packages/

下载wget的RPM包:http://mirrors.163.com/centos/6.2/os/x86_64/Packages/wget-1.12-1.4.el6.x86_64.rpm

运行以下命令安装即可

rpm ivh wget-1.12-1.4.el6.x86_64.rpm

  

原文地址:https://www.cnblogs.com/Lizhichengweidashen/p/15649610.html