Fixing the “wget: command not found” Error in Linux

by Marlon Altenwerth
7 minutes read

Fixing the “wget: command not found” Error in Linux


Wget Command Not Detected Featured

Sprinting into the “wget command not identified” fiascoes in Linux can be disappointing, specifically as promptly as downloading and install records from the internet. But don’t depression! It’s ordinarily an easy mend. This fiascoes usually approaches your contraption doesn’t have wget brandished or it isn’t in the contraption’s PATH. In this tutorial, we’ll demonstrate paltry moves to avail wget up and dashing so you can prelude downloading and install records without any kind of wrangle.

Why Lugs out the “wget command not identified” Bad feedback Model?

The wget: command not identified fiascoes in Linux ensues as promptly as wget is not brandished by default, lacking from the contraption’s PATH, or is corrupted. Some marginal Linux jobs don’t incorporate wget to preserve the contraption lightweight. In this husk, we have to mount it by hand.

If the contraption doesn’t establish wget after installation, it could be outdoor the PATH. You can mend this by including its directory internet site to PATH. Fourthly, a corrupted or remote wget package can collect this hesitation, and reinstalling wget addresses it.

Recover 1: Enfranchisement wget on Your Linux Mechanism

On most Linux jobs, wget comes pre-brandished. Singularly, if for some justification your contraption doesn’t have wget brandished, you could visit the ‘command not identified’ fiascoes. To inhibit this fiascoes, it’s always a commendable behavior to authenticate the wget installation on your contraption before doning it. To implement this, you can run the complying with command:

sudo wget

If your contraption has wget accordingly mount, this command recovers the “wget: lacking URL intake blog post:

Consider Wget Accessibility
Fixing the "wget: command not found" Error in Linux 23

Singularly, if your Linux contraption doesn’t have wget brandished, you’ll visit the “wget: command not identified” fiascoes:

Command Not Detected
Fixing the "wget: command not found" Error in Linux 24

To mend this, mount wget doning your circulation’s package supervisor. For instance, on Debian/Ubuntu, you can make make application of of the proper package supervisor:

sudo apt-get install wget
Enfranchisement Wget
Fixing the "wget: command not found" Error in Linux 25

You can originality the installation by scrutinizing the wget iteration:

wget --version
Mirror Wget Installation
Fixing the "wget: command not found" Error in Linux 26

To mount wget on RHEL-based Linux jobs, you can make make application of of dnf package supervisor:

sudo dnf install wget

Similarly, you can make make application of of your circulation’s package supervisor to mount wget on other Linux variants.

Recover 2: Configure Wget PATH

In some instances, the hesitation isn’t through wget not being brandished. In reality, wget could be posture on your contraption, yet you still experience the ‘wget: command not identified’ fiascoes. In such shucks, you have to authenticate whether the contraption’s PATH has wget. For this impartial, make make application of of the which command:

which wget

If this command rejoinders a training course like /usr/bin/wget, it approaches wget is brandished and obtainable in the contraption’s PATH:

Consider Wget Course Setup
Fixing the "wget: command not found" Error in Linux 27

Singularly, if the command rejoinders entirely nothing, your contraption either doesn’t have wget brandished or has it in a directory internet site not listed in the PATH ensconcing variable.

If wget is brandished but not in PATH, you can momentarily add it doning the export command:

export PATH=$PATH:/path/to/wget_directory

Fluctuation /training course/to/wget_directory through the real training course like /usr/bin:

Configure Course
Fixing the "wget: command not found" Error in Linux 28

You can make this readjust irreversible by including unchanged queue to ~/.bashrc or ~/.bash_profile.

If you usually download records through wget, make sure your contraption has it brandished and mount duly. Or else, you could experience an fiascoes like wget: command not identified. This fiascoes ordinarily ensues as promptly as wget is lacking, misconfigured, or corrupted. Singularly, the cures are paltry. You can mount wget, authenticate its existence in the contraption’s PATH, and make advantageous corrections. If wget still doesn’t job-related, you can make make application of of an choice like the crinkle command to download records from the internet.

Foresee credit: Unanimously modifications and screenshots by Anees Asghar.

Related Posts