Paul Sutton

Downoad

ISO download script

This is a very basic bash script designed to download and check an iso file.

echo Download iso and sha256sum file 
echo from https://www.linuxmint.com/edition.php?id=316
echo You should perform the gpg sign check manually as per instructions.
echo
echo Please ensure that sha256sum is installed.
echo
echo You should be able to use ctrl-c to abort download
echo wget -c is designed carry on where it left off if interupted but may take
echo some time to complete.
echo
echo start
urls=(
  # Download Linuxmint 22 and sha5sum.txt
  "https://mirror.bytemark.co.uk/linuxmint/stable/22/linuxmint-22-cinnamon-64bit.iso"
  "https://mirrors.kernel.org/linuxmint/stable/22/sha256sum.txt"
)

# Loop to download each file
for url in "${urls[@]}"; do
  wget "$url"
done

#Perform basic checksum check
sha256sum -c sha256sum.txt

You will, of course need to set the execute permissions

chmod +x script.sh

Links

Tags

#Bash,#Script,#ISO,#Downoad.#Check


Mastodon ShellLabs Join Mastodon
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Donate using Liberapay