# Wget

Wget is a command-line utility for non-interactive downloading of files, directories, and entire websites over HTTP, HTTPS, and FTP.

Canonical page: https://ourlocalhost.com/app/6675/wget

## Description

Wget is a command-line utility for non-interactive downloading of files, directories, and entire websites over HTTP, HTTPS, and FTP. It supports recursive site mirroring, respects robots.txt, and can rewrite links for offline viewing, making it a lightweight companion for automated content archiving in self-hosted environments.

## Platform availability

Available on 0 of 10 platforms.

## Health score

27/100 (Low), based on 4 of 5 factors.
- Maintained: 0 (last commit 3488 days ago)
- Popular: 24 (14 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 85 (no serious findings, tests)

## Links

- Documentation: https://eternallybored.org/misc/wget/1.20/wget.html
- GitHub: https://github.com/gitGNU/gnu_wget
- Official website: http://www.gnu.org/software/wget/

## Common questions

### Can Wget run in the background without an interactive session?

Yes, Wget is non-interactive and can work in the background while the user is not logged on. This lets a download continue after the user disconnects from the system.

### How do I install Wget in a minimal Docker image?

In minimal Docker images where Wget is absent, install it with the system package manager before using it as a download service. The documented example uses apt-get install wget.

### Can Wget avoid re-downloading files that have not changed?

Yes. With both HTTP and FTP, Wget can check whether a remote file has changed on the server since the previous run and only download the newer files.

### How can I make a mirrored website viewable offline?

Wget can be instructed to convert the links in downloaded HTML files to point at local files. This allows a local copy of a remote website to be used for offline viewing.

### How do I make Wget follow links to a different host?

Use the --span-hosts option to follow links to a different host. You can also use --domains and --exclude-domains to control which hosts Wget follows.

### Where can I put default Wget settings?

Wget settings can be configured through command-line options or an initialization file named .wgetrc. A global startup file, /usr/local/etc/wgetrc by default, can be installed for site settings.

## Alternatives

- ArchiveBox: ArchiveBox is an open-source, self-hosted web archiving tool that saves websites, links, bookmarks, and media for offline access.
- HTTPie for Terminal: HTTPie (pronounced aitch-tee-tee-pie) is a command line HTTP client.
- HTTrack: HTTrack is a free, open-source offline browser that recursively mirrors entire websites to a local directory, preserving the original link…
- Hurl: Hurl is a command-line tool that runs and tests HTTP requests defined in simple plain text files.
- aria2: Aria2 is a lightweight, multi-protocol, multi-source, cross-platform command-line download utility that retrieves files over HTTP/HTTPS, FT…
- binhex-ariang: AriaNg is a modern, responsive web frontend that makes the aria2 download engine easy to manage from any browser.
- cURL: cURL is a versatile tool used to send and receive information between your computer and a server via the internet.
- lftp: LFTP is a versatile tool for moving files between your computer and a remote server.
- uGet: uGet is a lightweight and full-featured Download Manager for Linux and Windows.

---
Source: Our Local Host (https://ourlocalhost.com/app/6675/wget), the self-hosted and open-source app directory.
