Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wget command not found on linux server

I have a linux server (completely new, web hosting, nothing is installed into it), and want to use a "wget" command. Currently, it is not found. Kernel version 2.6.32-896.16.1.lve1.4.54.el6.x86_64

I am completely new to linux, tried to solve this issue by myself, but couldn't do it. I log in into this linux server via PuTTY via my Windows OS laptop.

wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz

To get "wget" to work, I will need to install it. I guess I will need to install first "sudo" and/or "apt" and/or "apt-get". But couldn't do it. Please give me a short list of steps in which order to install them.

like image 295
user97 Avatar asked Feb 16 '19 23:02

user97


People also ask

How do I fix wget command not found?

Install wget command on Ubuntu After completing the install, again run the previous command to check the install version of this command. Run the wget command with –h option to display all option details of this command.

How do I know if wget is installed on Linux?

The wget package is pre-installed on most Linux distributions today. To check whether the Wget package is installed on your system, open up your console, type wget , and press enter. If you have wget installed, the system will print wget: missing URL . Otherwise, it will print wget command not found .


3 Answers

Given your kernel version, it looks like your Linux distribution is CentOS 6 or RHEL 6. Try installing wget with this command:

yum install wget

You must be root when you run this command.

like image 94
Radu Rendec Avatar answered Sep 22 '22 10:09

Radu Rendec


Incase you using Debian version of Linux, use the following:

sudo apt-get install wget
like image 29
swapnil shashank Avatar answered Sep 26 '22 10:09

swapnil shashank


From kernel version, it looks like you are using RHEL/Centos 6. Please check - https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html

If the mentioned dependencies exist in your system, you can directly fire the rpm command

rpm command guide - https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html

If it doesn't work, you need to use yum command. (You need to configure yum command first, if not configured already) yum install wget

To configure yum command in centos6 - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories

Note - you need to be root user for above activities.

like image 38
Khilesh Chauhan Avatar answered Sep 24 '22 10:09

Khilesh Chauhan