Skip to content
/ dlx Public

It's a command line tool to DownLoad and eXtract files.

License

Notifications You must be signed in to change notification settings

YOCKOW/dlx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is dlx?

It's a command line tool to DownLoad and eXtract files.
It is available to verify the downloaded file with its hash and/or PGP signature before extracting.

Requirements

  • Zsh
  • cURL
  • Hash tools
    • MD5: md5, md5sum, gmd5sum, or openssl
    • SHA1: sha1sum, gsha1sum, or openssl
    • SHA256: sha256sum, gsha256sum, or openssl
    • SHA512: sha512sum, gsha512sum, or openssl
    • PGP: gpg
  • OS: macOS/Linux

How to install

% git clone https://GitHub.com/YOCKOW/dlx.git
% cd dlx
% make test && sudo make install

Usage

% dlx https://example.com/veryFantasticTools.zip \
    --md5=63aac7068fea572fea8d15417d846d80

% dlx https://example.com/veryFantasticOtherTools.tar.gz \
    --pgp=https://example.com/veryFantasticOtherTools.tar.gz.sig

Try dlx --help to read more details.

Samples

Apache mod_fcgid FastCGI module

% mod_fcgid_url="https://dlcdn.apache.org/httpd/mod_fcgid/mod_fcgid-2.3.9.tar.gz"
% dlx "$mod_fcgid_url" \
  --md5 "$mod_fcgid_url.md5" \
  --sha1 "$mod_fcgid_url.sha1" \
  --dir ./my-fcgid-directory

Swift Toolchain

% swift_toolchain_url="https://download.swift.org/swift-5.5.1-release/ubuntu2004/swift-5.5.1-RELEASE/swift-5.5.1-RELEASE-ubuntu20.04.tar.gz"
% dlx "$swift_toolchain_url" --pgp="$swift_toolchain_url.sig"

License

MIT License.
See "LICENSE.txt" for more information.

About

It's a command line tool to DownLoad and eXtract files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published