How to Install and Use wget

wget is a non-interactive downloader. Using wget, you can download files directly to your server or hosting account.

For example, let's say you want to install cPanel on your server. You would normally go to:

http://httpupdate.cpanel.net/latest

and download the latest install to your desktop. You would then have to open your FTP client and upload the file to your server.

wget cuts your time in half by allowing you to directly download the file to your server.

Install wget

[1] See if wget is installed. You can do so by running this command via SSH when logged in as root:

which wget

If wget is installed, the output of the above command should be:

/usr/bin/wget

If wget is not installed on your server, here are the commands to install it for CentOS/Redhat and Debian/Ubuntu when logged into your server via SSH as root:

CentOS/Redhat:

yum install wget

Debian/Ubuntu:

sudo apt-get install wget

Using wget

Now that you have wget installed, you can issue the command to download any file that you have the URL for. You will want to make sure you're located in the directory where you're wanting to download the file to before issuing the wget command.

We were using cPanel as the example earlier, so the command would be:

wget http://httpupdate.cpanel.net/latest

And you're done!

  • 8 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

How to connect to your server via SSH using PuTTY

You will need the Acenet recommended SSH client PuTTY downloaded to your local machine before...

How to Fix an IPtables Lockout (VPS/Dedicated Server w/cPanel)

If you're unable to access your server via SSH because of a rule added to iptables in error, it...

How to Install APC on CentOS 6

APC (Alternative PHP Cache) is an opcode cache for PHP. APC provides a caching system for...

How to install Apache Tomcat using WHM (Web Host Manager)

This article is for client's with virtual and dedicated servers. Apache Tomcat is not supported...

How to Disable a Specific Rule for Mod security on a Single Domain

This article pertains specifically to Dedicated Servers and Virtual Servers. The apache...