How To Install Wget on CentOS

r00t January 30, 2016

Install Wget on CentOS

In this tutorial we will show you how to install and configuration wget command on CentOS. For those of you who didn’t know, Wget is a free network utility to download files from the Web using http and ftp, the two most widely used Internet protocols. Wget utility is available for free and licensed is under GNU GPL License. However, it’s also supports https protocol as well as retrieval through HTTP proxies.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation wget on a CentOS server.

Install Wget on CentOS

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing wget.

To install the wget command on a CentOS machine just run the command:

Example wget command

To download a single file from a website using the following command:

If your web page requires a username and password use the following command:

Download a file from an ftp site using the following command:

If your ftp site requires a username and password use the following command:

Download and entire website using the following command:

Download and save it in a specific path using the following command:

Download a file and save it under a different name using the following command:

Resume an interrupted file download using the following command:

Limit download speed of a file using the following command:

Congratulation’s! You have successfully installed wget. Thanks for using this tutorial for installing wget command on your CentOS system. For additional help or useful information, we recommend you to check the official wget web site.

Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit1Pin on Pinterest2
The Tags:

Leave a Comment