How to Check Wget Version in Linux and Mac?

Knowing the exact version of wget installed on your system is essential for troubleshooting script errors, ensuring compatibility with specific download flags, and verifying that you have the latest security patches. This article provides a quick, straightforward guide on how to check your wget version using the command-line interface on Linux, macOS, and Windows subsystems, while also showing you how to interpret the command’s output.

Using the Version Flag

The quickest and most universal way to find your wget version is by using the terminal. Open your command line interface and type either of the following commands, then press Enter:

wget --version

Alternatively, you can use the shorthand flag:

wget -V

Understanding the Output

When you run the version command, the terminal will display a block of text. The most critical information is located right at the top. Here is what you should look for:

Troubleshooting the Command

If you run the command and receive an error that looks like bash: wget: command not found, it means one of two things: