Last active
February 1, 2017 18:03
-
-
Save czocher/821ad09b7e3fbebcfe31a6bf34e91af5 to your computer and use it in GitHub Desktop.
Script to download and check a Fedora armhf image from the official site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download the minimal image | |
wget -c https://download.fedoraproject.org/pub/fedora/linux/releases/25/Spins/armhfp/images/Fedora-Minimal-armhfp-25-1.3-sda.raw.xz | |
# Load the Fedora GPG keys | |
curl https://getfedora.org/static/fedora.gpg | gpg --import | |
# Load the checksum file | |
curl -O https://arm.fedoraproject.org/static/checksums/Fedora-Spins-25-1.3-armhfp-CHECKSUM | |
# Verify the checksum file | |
gpg --verify-files *-CHECKSUM | |
# Check the integrity | |
sha256sum -c *-CHECKSUM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment