我有一个不太可靠的互联网连接,所以我通过App Store下载Yosemite已经打破了几次尝试。我想知道我的下载是否完好无损。如果您可以在终端中运行此命令:
shasum /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg
并分享您的结果。通过这种方式,我们可以就干净的副本看起来一致。
我有一个不太可靠的互联网连接,所以我通过App Store下载Yosemite已经打破了几次尝试。我想知道我的下载是否完好无损。如果您可以在终端中运行此命令:
shasum /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg
并分享您的结果。通过这种方式,我们可以就干净的副本看起来一致。
Answers:
我运行你的请求,这是结果。
eebf02a20ac27665a966957eec6f5e6fe3228a19 /Applications/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg
而对于Yosemite 10.10.1,shasum是:
a673c2c6d967f4da2934b7d6cf3736936970b194
请等待一两分钟到终端获取号码。
为什么不检查签名呢?这样,您就不必依赖外部校验和。
以下是使用Mavericks安装程序完成此操作的示例(我还没有Yosemite安装程序):
$ codesign -dvvv Install\ OS\ X\ Mavericks.app/
Executable=…/Install OS X Mavericks.app/Contents/MacOS/Install OS X Mavericks
Identifier=com.apple.InstallAssistant.Mavericks
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20100 size=285 flags=0x200(kill) hashes=7+3 location=embedded
Hash type=sha1 size=20
CDHash=9bf12663fe5f73d2780eb2badc2fe7a86a2c7164
Signature size=4169
Authority=Apple Mac OS Application Signing
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Info.plist entries=30
TeamIdentifier=not set
Sealed Resources version=1 rules=14 files=80
Internal requirements count=1 size=124
补充10.10的接受答案 ......
安装OS X Yosemite.app的 1.6.7版(1014)
a673c2c6d967f4da2934b7d6cf3736936970b194
该应用程序的版本1.6.10(1017)
059f2603a91465bcee24c864d446da30df920f85
请注意,这与接受的答案的修订版2不同; 添加到该修订版的结果确实是10.10。1。
该应用程序的版本1.6.16(1023)
dc4d4d0a7cd4aea4514025d23a58d05107369fa9
该应用程序的版本1.6.43(1043),于2016-07-17周日首次从App Store下载,2016-07-18
0e063fd87d5b0a4f68dbd35da95b2018748f88eb
在https://github.com/drduh/OS-X-Security-and-Privacy-Guide/blob/master/InstallESD_Hashes.csv以及接受的答案下的评论中:
ef5cc8851b893dbe4bc9a5cf5c648c10450af6bc
关于差异:https://github.com/drduh/OS-X-Security-and-Privacy-Guide/issues/125
Mashemite:Desktop grahamperrin$ cd /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/
Mashemite:SharedSupport grahamperrin$ shasum InstallESD.dmg
0e063fd87d5b0a4f68dbd35da95b2018748f88eb InstallESD.dmg
Mashemite:SharedSupport grahamperrin$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.12
BuildVersion: 16A239m
Mashemite:SharedSupport grahamperrin$
- 并参考Mac OS X:如何验证SHA-1摘要 - Apple支持:
Mashemite:SharedSupport grahamperrin$ openssl sha1 InstallESD.dmg
SHA1(InstallESD.dmg)= 0e063fd87d5b0a4f68dbd35da95b2018748f88eb
Mashemite:SharedSupport grahamperrin$
$ sudo zfs mount
zhandy /Volumes/zhandy
$ pwd
/Volumes/zhandy/chronological/OS X/10/10/3/1.6.16 (1023)/Install OS X Yosemite.app/Contents/SharedSupport
$ time shasum InstallESD.dmg
dc4d4d0a7cd4aea4514025d23a58d05107369fa9 InstallESD.dmg
13.47user 2.21system 4:25.25elapsed 5%CPU (0avgtext+0avgdata 6864maxresident)k
11084834inputs+0outputs (0major+762minor)pagefaults 0swaps
$ cd /Volumes/zhandy/chronological/OS\ X/10/10/2/1.6.10\ \(1017\)/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/
$ time shasum InstallESD.dmg
059f2603a91465bcee24c864d446da30df920f85 InstallESD.dmg
12.66user 2.03system 3:52.58elapsed 6%CPU (0avgtext+0avgdata 6732maxresident)k
10182180inputs+0outputs (0major+760minor)pagefaults 0swaps
$ cd /Volumes/zhandy/chronological/OS\ X/10/10/1/1.6.7\ \(1014\)/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/
$ time shasum InstallESD.dmg
a673c2c6d967f4da2934b7d6cf3736936970b194 InstallESD.dmg
12.39user 1.95system 3:36.28elapsed 6%CPU (0avgtext+0avgdata 6804maxresident)k
10159544inputs+0outputs (0major+762minor)pagefaults 0swaps
$ sudo zpool status
[sudo] password for grahamperrin:
pool: zhandy
state: ONLINE
status: The pool is formatted using a legacy on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
pool will no longer be accessible on software that does not support
feature flags.
scan: scrub in progress since Sun Jul 17 19:22:15 2016
26.9G scanned out of 513G at 15.7M/s, 8h50m to go
0 repaired, 5.25% done
config:
NAME STATE READ WRITE CKSUM
zhandy ONLINE 0 0 0
ata-SAMSUNG_HM641JI_S2HUJ9FBA00492-part2 ONLINE 0 0 0
errors: No known data errors
$ date ; uname -a
Sun 17 Jul 20:05:10 BST 2016
Linux momh167-gjp4-kubuntu-hpelitebook850g2 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$
$ date ; sudo zpool status
Mon 18 Jul 04:29:41 BST 2016
[sudo] password for grahamperrin:
pool: zhandy
state: ONLINE
status: The pool is formatted using a legacy on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
pool will no longer be accessible on software that does not support
feature flags.
scan: scrub repaired 0 in 7h43m with 0 errors on Mon Jul 18 03:05:25 2016
config:
NAME STATE READ WRITE CKSUM
zhandy ONLINE 0 0 0
ata-SAMSUNG_HM641JI_S2HUJ9FBA00492-part2 ONLINE 0 0 0
errors: No known data errors
$
$ cd /Volumes/zhandy/chronological/OS\ X/10/10/1/1.6.7\ \(1014\)/Install\ OS\ X\ Yosemite.app/Contents/
$ cat version.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildAliasOf</key>
<string>InstallAssistant</string>
<key>BuildVersion</key>
<string>286</string>
<key>CFBundleShortVersionString</key>
<string>1.6.7</string>
<key>CFBundleVersion</key>
<string>1014</string>
<key>ProjectName</key>
<string>InstallAssistant_MAS</string>
<key>SourceVersion</key>
<string>532000000000000</string>
</dict>
</plist>
$
对于10.10.4,我从未下载过安装程序。
您可以使用Apple的数字签名检查,如下所示 https://support.apple.com/en-ap/HT202369