Downloads a file an optionally verifies it's MD5 or SHA256 checksum.
Usage
fetch -L $SOME_URL --sha256 $SHA256_SUM
The command line options for fetch are compatible with the widely curl command. A wide variety of options are available yet. If you want to use an option that is still missing, please leave an issue at the project's Github repository.
Features
curl-inspired API
check SHA256 or MD5 checksum during download
multiple HTTP methods (GET, PUT, POST, and more)
upload data from local file
specify timeouts
specify TLS version to use
Limitations of snap version
The snap version is only able to write files in the current users home directory. To overcome this limitation, either pipe the output of fetch to the desired file or install the .deb package provided on the project's Github repository.
(Ownership verified)
The publisher has verified that they own this domain.
It does not guarantee the Snap is an official upload
from the upstream project.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Enable snapd
On Debian 9 (Stretch) and newer, snap can be installed directly from the command line:
sudo apt update
sudo apt install snapd
After this, install the snapd snap in order to get the latest snapd:
sudo snap install snapd
Install fetch
To install fetch, simply use the following command: