Script to download/update different linux distributions using the most convenient available download tool offered by the respective distribution.
Available distros:
- Ubuntu
- Kali Linux
- Tails
- Debian
- Elementary OS
- TinyCore Linux
- Zorin OS
- Grml Live Linux
- CloneZilla
- GParted
- SystemRescue
- Whonix
- Finnix
- OpenFyde
- AntiX
- Download directory should be an argument.
- Torrent client credentials should be setted from arguments.
- Add preferred download tool option (torrent, zsync, curl). If any of the former tools are not available, default to CURL.
- Check download integrity with available hashing methods.
- Verify download with PGP signatures.
- Offer rtorrent client as an option.
- Add different flavors for the same distribution.
- Separate each distribution function to a different file, and source them to the main file.
Run script daily through crontab:
0 0 * * * /usr/local/bin/update-distros.sh
Download only ubuntu:
update-distros.sh -d ubuntu
Download Debian and Kali:
update-distros.sh -d debian,kali
If for some reason the script can't fetch from the official download sites, you can send a notification through the ntfy.sh service.
The topic might be setted from args, or by setting the environment variable NTFY_TOPIC.
update-distros.sh -n $MY_TOPIC
The declare -F
statement at the end of the main
function is only available for BASH.