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 

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.

0

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.

1

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

sudo apt-get install wget

From kernel version, it looks like you are using RHEL/Centos 6. Please check -

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

rpm command guide -

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 -

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like