Monday, 14 May 2018

How to resolve wget: command not found



wget command: It is a command-line utility and used to downloads files over a network. wget is a free utility to download files and available most of the Linux distributions.

[root@linuxcnf ~]# wget https://www.linuxcnf.com/
-bash: wget: command not found
[root@linuxcnf ~]#

It means wget package is not installed on the system. So we need to install the package
This tutorial will help to install the package and resolve the issue:

[root@linuxcnf ~]# yum install wget
Loaded plugins: fastestmirror
.......
Installed:
  wget.x86_64 0:1.12-10.el6

Complete!
[root@linuxcnf ~]# which wget
/usr/bin/wget
[root@linuxcnf ~]#

Now the command is available on the system and we are able to download file using wget command!!!!

No comments:

Post a comment