wget command not found on linux server

user97 picture user97 · Feb 17, 2019 · Viewed 41k times · Source

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.

Answer

Radu Rendec picture Radu Rendec · Feb 17, 2019

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.