+4 votes
693 views
How to install Wget on Linux (Ubuntu, CentOS, Debian, Fedora)

in Linux / Unix by (552k points)
reopened | 693 views

1 Answer

+5 votes
Best answer

1. How to install wget on Ubuntu on Linux
2. How to install wget on Ubuntu on CentOS
3. How to install wget on Ubuntu on Debian
4 . How to install wget on Ubuntu on Fedora

Commands in Linux play an essential role to carry out hundreds of tasks in a correct and suitable way since with them you can perform administrative , informative, audit and many other tasks. But improper use of them can incur hundreds of processes and system services affecting our productivity and one of the most practical commands in Linux is the wget command..

Wget is a tool that will allow us to download content that comes from web servers under protocols such as ftp or https. For the management of these downloads we will find a command that allows you to easily download repositories, however complex they may be, in addition to other tasks.

What is wget
The wget command has been developed as a completely free software package thanks to which we can download files using protocols such as HTTP, HTTPS, FTP and FTPS. This makes wget a non-interactive command line tool, which can be implemented in scripts, cron jobs or in terminals that do not have X-Windows support.
Wget features
Wget is distributed under the GNU General Public License and offers us features such as:
  • Supports HTTP proxies.
  • It is compatible with HTTP cookies.
  • Wget can convert absolute links into relative documents, this will allow downloaded documents to be able to create links to each other locally.
  • Supports persistent HTTP connections.
  • It is able to resume canceled downloads thanks to the REST and RANGE variables.
  • Wget makes use of local file timestamps in order to define whether documents have to be downloaded again.
  • Integrates the unattended operation function in the background.
  • Supports the use of file name wildcards and mirror directories recursively.

Now you will see how to install wget on some of the most popular Linux distributions.


1. How to install wget on Ubuntu on Linux

Step 1

To install wget on Ubuntu, in this case 19, just execute the following command in the terminal:
 sudo apt-get install wget 
image
Step 2

To check the wget version we will execute the following:
 dpkg -l | grep wget 
image
Step 3

We can use one of the many options that wget offers us in Ubuntu: image

2. How to install wget on Ubuntu on CentOS

Step 1

For this case we will use CentOS 8 which is the last edition full of practical functions, in the case of CentOS we will execute the following command to install wget:
 yum install wget 
image
Step 2

Enter the letter s to confirm the download and installation of wget: image
Step 3

We can confirm the installation by running:
 rpm -qa | grep wget 
image
Step 4

There we can now download or use wget for various tasks: image

3. How to install wget on Ubuntu on Debian

Step 1

Debian is a dynamic distro where wget will help increase its performance capabilities, there we must execute the following for wget installation:
 apt-get install wget 
image
Step 2

We can validate the installation by running:
 dpkg -l | grep wget 
image
Step 3

Finally, we can validate the version using:
 wget –version 
image

4 . How to install wget on Ubuntu on Fedora

Step 1

If you want to install wget on fedora, just use the following command. In Fedora wget it is already installed by default
 yum install wget 
image
Step 2

You can confirm the installation by running:
 rpm -qa | grep wget 
image
Step 3

With this wget is ready to be used in Fedora: image

With wget it will be possible to obtain files from the network in a simple, secure and fully functional way..


by (3.5m points)
edited

Related questions

+5 votes
1 answer
+4 votes
1 answer
+3 votes
1 answer
+4 votes
1 answer
asked Nov 2, 2019 in Linux / Unix by backtothefuture (552k points) | 725 views
+4 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users