wget

Download without prompts, and mirror a whole site

wget Web and transfer GPL-3.0

About

wget fetches files over HTTP, HTTPS and FTP without any prompts. That makes it a natural fit for scripts and scheduled jobs. Use it to pull one file, resume a broken transfer, or mirror a small site.

Install it

pkg install wget

Run this inside Termux. If the package is already present, pkg will say so and do nothing.

Commands worth knowing

5 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.

wget -O page.html https://example.com Download a page and save it under a filename you choose.
wget -c https://example.com/big.iso Resume an interrupted download from where it stopped. Matters on a flaky mobile connection.
wget -r -l 2 https://example.com/docs/ Mirror a small site to a chosen depth. Read it offline.
wget --spider https://example.com Check that a URL exists without saving it. Useful for validating links in a script.
wget -q -O - https://example.com/status Fetch quietly and print to standard output. Another tool can consume the result.

Worked example

Run wget -O file.zip https://example.com/file.zip and this is what you should see.

termux
$ wget -O file.zip https://example.com/file.zip
--2026-10-24 10:00:00--  https://example.com/file.zip
Resolving example.com... 93.184.216.34
Connecting to example.com|93.184.216.34|:443... connected.
Saving to: file.zip
file.zip  100%[====>]  4.20M  2.10MB/s    in 2.0s

Developed by

The GNU Project · released under GPL-3.0.