Skip to content

Instantly share code, notes, and snippets.

@tvvocold
Created July 10, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvvocold/42b382c07b3848c09aab to your computer and use it in GitHub Desktop.
Save tvvocold/42b382c07b3848c09aab to your computer and use it in GitHub Desktop.
windows-verify-fedora22
> $image = "Fedora-Live-Workstation-x86_64-22-3.iso"
(请注意这里笔者以自己的 iso 文件为例,如果您下载了其他版本的 Fedora,请自行修改文件名)
> $checksum_file = "Fedora-Workstation-22-x86_64-CHECKSUM"
(请注意这里笔者以 Fedora 22 工作站(64 bit)版为例,如果您下载了其他版本的 Fedora,请在 https://getfedora.org/verify 查询 checksum_file )
> $sha256 = New-Object -TypeName System.Security.Cryptography.sha256CryptoServiceProvider
> $expected_checksum = ((Get-Content $checksum_file | Select-String -Pattern $image) -split " ")[0].ToLower()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment