How to fix Wget Command Not Found?

Wget command not found is a common error that can occur on Linux-based systems; it’s usually caused by a missing or incorrect wget installation.

Wget is a handy tool that is used for the non-interactive download of files from the web. However, if you’re having trouble using the wget command, then follow these simple steps to fix it.

What is wget? 

Wget is a free and open-source command-line application that can be used to download files from the internet using the HTTP, HTTPS, and FTP protocols

One of the main advantages of wget is its ability to resume downloads during a network interruption. This makes it ideal for retrieving large files or files from unstable connections. In addition, wget can be used to create a local mirror of a website via recursive downloading. 

This means that all pages linked from the initial page (and any pages linked from those pages, etc.) will be downloaded, allowing the user to browse the site offline. 

If you want to download a file using wget, then use the following syntax:

wget [options] [URL]

Most importantly, wget is highly flexible, allowing it to be run from a terminal, script, or cron job. This flexibility, combined with its ability to run in the background, makes wget an essential tool for automating downloads.

How to fix Wget Command Not Found?

This section covers a detailed guide so that you can fix this issue in no time. This can be done by using the apt-get command.

sudo apt-get install {enter-package-name}

Let’s take a look:

Installing wget on Linux

Installing wget on your Ubuntu Linux system is pretty straightforward. Use the following syntax to install the wget package on Ubuntu, Debian, and Mint Linux:

sudo apt install wget

or else,

sudo apt-get install wget

After the installation process is finished, make sure to check if the wget utility is working on your system or not.

Installing wget on CentOS

For wget installation on other Linux distributions like CentOS, use the following command:

sudo yum install wget

Installing wget on Fedora

If you’re a Fedora user, then use the following command to install wget on Fedora:

sudo dnf install wget

Installing wget on OpenSUSE

SUSE/OpenSUSE Linux users who need to install the wget command can do so by using the following command:

zypper install wget

This command will install the wget package and any dependencies required for it to run. Once the installation is complete, the wget command can be used like any other Linux command. 

How to Check if wget is Installed on your System?

In most cases, the wget utility is pre-installed on Linux systems. Here’s how you can check if wget is installed on your system:

  • You can run wget from the terminal. All you have to do is open your terminal and enter the following:


Now, if you’ve installed it, then the tool will simply inform you that the command is missing a URL.

Otherwise, you will face the error wget command not found, which can be easily fixed by following the guide mentioned above.


If you found this guide helpful and were able to fix the Wget command not found error on your Linux system, do share it with others who may also be experiencing the same issue. 

Do you have any questions or comments about this guide? Let us know in the comment section below.

Frequently Asked Questions

How does wget work?

It works by following the links in HTML and XHTML web pages in order to create local versions of remote websites. Thus recreating the directory structure of a website.

How to use wget?

In order to use wget, a user simply needs to provide the URL of the desired content. Once the content has been downloaded, it can be viewed offline. 

Leave a Comment