-bash: wget: command not found – How to install Wget on Linux
-bash: wget: command not found – How to install Wget command on a Linux Server
[root@server ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.820-1.noarch.rpm
-bash: wget: command not found
Error shows that wget package is not installed on your linux server. Wget package is used on linux servers to download files from the internet. Run the below command to check whether wget package is installed on your linux server. You will see the above error if you did a fresh installation of operating system.
[root@server ~]# rpm -qa | grep wget
wget package is not installed on the above server. You can install wget package using yum, do the below steps to install wget package.
1. Log into your linux server via SSH as root
2 Run the command “yum install wget” to install wget package
root@server ~]# yum install wget
—> Package wget.x86_64 0:1.14-13.el7 will be installed
Total download size: 546 k
Installed size: 2.0 M
Is this ok [y/d/N]: y (Enter y and hit enter)
Wget is now installed on the above linux server. Type the below command to make sure it is installed correctly.
wget –version – This command will display the version of wget installed on your server.