English Japanese
> cd $HOME\Downloads\
> ls
Directory: C:\Users\Pete\Downloads
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 11/25/2014 12:39 PM 272 Fedora-Server-21-x86_64-CHECKSUM
-a--- 11/25/2014 12:39 PM 2047868928 Fedora-Server-DVD-x86_64-21.iso
Load the resources required to calculate the checksum.
> $image = "Fedora-Server-DVD-x86_64-21.iso"
> $checksum_file = "Fedora-Server-21-x86_64-CHECKSUM"
> $sha256 = New-Object -TypeName System.Security.Cryptography.sha256CryptoServiceProvider
> $expected_checksum = ((Get-Content $checksum_file | Select-String -Pattern $image) -split " ")[0].ToLower()
Calculate the downloaded image's checksum. This will take a while!
> $download_checksum = [System.BitConverter]::ToString($sha256.ComputeHash([System.IO.File]::ReadAllBytes("$PWD\$image"))).ToLower() -replace '-', ''
Compare the calculated checksum to the expected checksum.
> echo "Download Checksum: $download_checksum"
> echo "Expected Checksum: $expected_checksum"
> if ( $download_checksum -eq "$expected_checksum" ) {
echo "Checksum test passed!"
} else {
echo "Checksum test failed."
Verifying checksums on Linux and OSX systems
Open a terminal window, and navigate to the directory with the downloaded files.
$ [command]#cd ~/Downloads#
Use the appropriate utility to verify the image checksum.
For Linux:
$ sha256sum -c *CHECKSUM
For OSX:
$ shasum -a 256 -c *CHECKSUM
Preparing Boot Media
Fedora images are `Hybrid ISOs` and can be used to create installation media with both optical and USB disks, for booting on both BIOS and UEFI systems.
Fedora Media Writer and Universal USB Creators