Created
July 10, 2015 18:11
-
-
Save tvvocold/42b382c07b3848c09aab to your computer and use it in GitHub Desktop.
windows-verify-fedora22
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
> $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