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

I am a new Red Hat Enterprise Linux (RHEL) 8 user. How do I install wget on RHEL 8 using the dnf 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 RHEL 8 based system. For example, if you try to use the wget command on RHEL 8, you will get an error that read as follows:

bash: wget: command not found

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

How to install wget on RHEL 8

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

  1. Open a terminal window.
  2. Search for wget package on Red Hat Enterprise Linux 8, run:
    sudo dnf search wget
  3. Type the following yum/dnf to install wget :
    sudo dnf install wget
  4. Verify install by downloading file using wget:
  5. Check wget version by running:
    wget --version

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

Installing wget command on RHEL 8 (Red Hat Enterprise Linux)

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

Searching for wget and other packages on RHEL 8

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

Installing wget on RHEL 8 using the dnf command

How to test wget command

Now you know how to install wget on RHEL 8. It is time to learn how to use it. The syntax is:
wget url
wget https://url/file
wget http://url
wget [options] url

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.

This entry is 2 of 6 in the Linux/Unix install wget Tutorial series. Keep reading the rest of the series:
  1. Freebsd Install wget Utility To Download Files From The Internet
  2. How to install wget on RHEL 8 using the dnf command
  3. Debian or Ubuntu Linux install wget
  4. RHEL/CentOS 7 install wget using yum
  5. Mac OS X Sierra Install wget Network Downloader Utility
  6. CentOS 8 install wget

🐧 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 ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
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 jobs killall kill pidof pstree pwdx time
Searchinggrep 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
1 comment… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum