How to install wget on CentOS 8 using the yum/dnf command

I am a new CentOS Enterprise Linux 8 user. How do I install wget on CentOS 8 using the dnf command or yum command?

Introduction – GNU/wget is a free and open source software package for getting files using HTTP, HTTPS, and FTP Internet protocols. The GNU/wget might not be installed on your CentOS 8 based desktop or server. For example, if you try to use the wget command on CentOS 8, you will get an error that read as follows:

bash: wget: command not found

This page explains how to set up wget on CentOS 8 using yum command/dnf command.

How to install wget on CentOS 8

The procedure to install wget command is as follows on CentOS Linux 8:

  1. Open a terminal window.
  2. Search for wget package on CentOS Enterprise Linux 8, run:
    sudo yum search wget
  3. Run to install wget :
    sudo yum install wget
  4. Verify wget installation, run:
  5. Check wget version by running:
    wget --version

Let us see all commands and steps in details to install wget in CentOS 8.

Installing wget command on CentOS 8

First try to locate wget package, run:
$ sudo yum search wget
Sample outputs:

==================================== Name Exactly Matched: wget =====================================
wget.x86_64 : A utility for retrieving files using the HTTP or FTP protocols

Type the following yum command or dnf command $ sudo dnf install wget
$ sudo yum install wget

How to test wget command

Now you know how to install wget on CentOS 8. It is time to learn how to use it. The syntax is:
wget url
wget https://exampleDotCom/fileName
wget http://url/path.tar.gz
wget [options] urls

How to download a single file using wget

Run the following command:
$ wget
$ wget
$ wget -O output.file

You can limit download speed as well:
wget --limit-rate=50k url
It is possible to set username and password while downloading files from password protected area:
wget --http-user=vivek --http-password=Secrete https://url-domain/file.tar.gz
For more info see β€œLinux wget: Your Ultimate Command Line Downloader”

How to resume broken downloads with wget

Again the syntax is as follows:
wget -c url
wget --continue url
wget --continue [options] url


This page explained how to install the wget command using the dnf command or yum command. Further, it also demonstrated basic usage of the wget for command line user. For more info see GNU/wget homepage here.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one ↓

CategoryList of Unix and Linux commands
Disk space analyzersdf β€’ duf β€’ ncdu β€’ pydf
File Managementcat β€’ cp β€’ mkdir β€’ tree
FirewallAlpine Awall β€’ CentOS 8 β€’ OpenSUSE β€’ RHEL 8 β€’ Ubuntu 16.04 β€’ Ubuntu 18.04 β€’ Ubuntu 20.04
Modern utilitiesbat β€’ exa
Network UtilitiesNetHogs β€’ dig β€’ host β€’ ip β€’ nmap
OpenVPNCentOS 7 β€’ CentOS 8 β€’ Debian 10 β€’ Debian 8/9 β€’ Ubuntu 18.04 β€’ Ubuntu 20.04
Package Managerapk β€’ apt
Processes Managementbg β€’ chroot β€’ cron β€’ disown β€’ fg β€’ glances β€’ gtop β€’ jobs β€’ killall β€’ kill β€’ pidof β€’ pstree β€’ pwdx β€’ time β€’ vtop
Searchingag β€’ grep β€’ whereis β€’ which
User Informationgroups β€’ id β€’ lastcomm β€’ last β€’ lid/libuser-lid β€’ logname β€’ members β€’ users β€’ whoami β€’ who β€’ w
WireGuard VPNAlpine β€’ CentOS 8 β€’ Debian 10 β€’ Firewall β€’ Ubuntu 20.04

Comments on this entry are closed.

Comments are closed. Still have questions? Post it on our forum