wget that provides file downloading capabilities with support for custom TLS certificates and automatic retries.
Overview
Downloader simplifies the process of downloading files from URLs with built-in support for:- Custom CA certificates
- TLS client authentication
- Automatic retry logic
- Directory prefix management
- File clobbering protection
Usage
Parameters
URL to download from
Output Options
Destination file path to download to. Can be shortened to
-O.Directory prefix for the downloaded file. Can be shortened to
-P. Cannot be used with --output-file.Download Behavior
Do not overwrite existing files. If the file already exists, the download will be skipped.
Suppress verbose output and only show warnings and errors.
TLS Options
Path to a root certificate authority file to use when downloading files.
Path to a TLS client certificate file to use for authentication.
Path to a TLS client private key file to use for authentication. Must be used with
--certificate.Logging Options
Path to file for log output.
Log level: panic, fatal, error, warn, info, debug, trace.
Examples
Basic Download
Download a file to the current directory:file.tar.gz in the current directory.
Download to Specific Location
Download and save with a custom filename:Download to Directory
Download to a specific directory while keeping the original filename:Skip Existing Files
Avoid re-downloading if the file already exists:Download with Custom CA Certificate
Download from a server with a custom certificate authority:Download with Client Authentication
Download using TLS client certificate authentication:Features
Automatic Retry Logic
Downloader includes built-in retry logic to handle temporary network issues and ensure reliable downloads.Query String Handling
When no output filename is specified, the tool automatically strips query strings from the URL to determine the output filename:System Certificate Pool
By default, Downloader uses the system certificate pool. Custom CA certificates are added to this pool rather than replacing it.Error Handling
Downloader provides clear error messages for common issues:- Invalid URLs
- Missing or invalid certificates
- File permission errors
- Network connectivity problems
The
--output-file and --directory-prefix options cannot be used together. Choose one based on your needs.Related Tools
- Spec Reader - Parse RPM spec files
- License Check - Validate RPM license files