How to Install Wget
Wget (short for “Web Get”) is a free and open-source command-line tool used to download files from the internet. It works on many operating systems, including Windows, macOS and Linux. This guide explains how to install it on a Linux server.
1. Log in to your server using SSH
ssh user@your_server_ip
If your server uses a custom SSH port, use this command instead:
ssh -p port_number user@your_server_ip
2. Install Wget
Choose the command that matches your operating system.
On Ubuntu or Debian:
sudo apt update
sudo apt install wget
On CentOS 7, or older RHEL-based systems:
sudo yum install wget
On AlmaLinux, Rocky Linux, CentOS Stream or RHEL 8 and newer:
sudo dnf install wget
3. Check that Wget is installed
Run this command:
wget –version
If Wget is installed correctly, you will see its version details.
Wget is especially useful for downloading large files and for automating downloads. System administrators, developers and advanced users often use it as a fast and reliable way to get files from the internet.
If you need any further help, please contact the eUKhost support team.
Want to install another useful tool? Read our guide on How to Install cURL on Linux.