linuxwgetsudoapt-getapt

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.


Solution

  • 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.