Skip to content

Instantly share code, notes, and snippets.

@czocher
Last active February 1, 2017 18:03
Show Gist options
  • Save czocher/821ad09b7e3fbebcfe31a6bf34e91af5 to your computer and use it in GitHub Desktop.
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
#!/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