How to Install WGET in Ubuntu

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
A man using his computer to access its command prompt.
Image Credit: Ridofranz/iStock/Getty Images

The free, open-source wget command-line tool downloads content from the Web through a variety of protocols, including HTTP, secure HTTPS and FTP. Wget works in the background, even when you're not logged on, to run complicated or long download scripts without the need for user input. Wget also follows links and monitors FTP servers for updates. Wget isn't installed by default on most editions of Ubuntu, but you can add it with Ubuntu's apt-get utility.

Advertisement

Step 1

Start a terminal session using an account that has root access on your system.

Video of the Day

Step 2

Update your apt-get package lists by entering the following command in the terminal:

sudo apt-get update

Advertisement

This ensures you download the latest version of wget.

Step 3

Install wget by entering the following command in the terminal:

sudo apt-get install wget

Advertisement

Advertisement

This downloads wget and any necessary dependencies.

Step 4

Verify that wget was downloaded properly by entering the following command:

wget --version

This returns the version and compilation information for wget if it was successfully installed. If not, repeat the process.

Video of the Day

Advertisement

Advertisement

references

Report an Issue

screenshot of the current page

Screenshot loading...