Fixing the “wget: command not found” Error in Linux
1 min read
Summary
The ‘wget command not found’ error in Linux occurs when the system does not have wget installed, or the path to the executable is not included in the system’s PATH environment variable.
It can be frustrating especially if you want to download files from the web.
The simplest solution is to check if wget is installed, and if not, to install it using the default package manager of the particular Linux distribution.
For example, for Debian/Ubuntu use ‘sudo apt-get install wget’ and for RHEL-based distributions use ‘sudo dnf install wget’.
Also, it is good to verify that the system’s PATH includes the path to the wget executable, which is typically found in ‘/usr/bin’ and if not, add it to the PATH variable using the ‘export’ command.
This will ensure that the system can locate the wget command and execute it without any issues.