OSX 10.10 Yosemite公开发布的SHA1哈希?


10

我有一个不太可靠的互联网连接,所以我通过App Store下载Yosemite已经打破了几次尝试。我想知道我的下载是否完好无损。如果您可以在终端中运行此命令:

shasum /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg

并分享您的结果。通过这种方式,我们可以就干净的副本看起来一致。

Answers:


10

我运行你的请求,这是结果。

eebf02a20ac27665a966957eec6f5e6fe3228a19  /Applications/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg

而对于Yosemite 10.10.1,shasum是:

a673c2c6d967f4da2934b7d6cf3736936970b194

请等待一两分钟到终端获取号码。


谢谢。我将能够在“6小时43分钟”内进行合作,然后我会检查答案。
fartheraway 2014年

1
是的。这对我来说是一样的结果。
fartheraway 2014年

1
如果我得到不同的结果是什么意思?我得到了这个:> 059f2603a91465bcee24c864d446da30df920f85 / Applications / Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg
Amanda

@Amanda你想尝试使用Yosemite(版本?)
Ruskes 2015年

2
@GrahamPerrin我没有文件/应用程序可用,所以我无法验证,但其他参考指向我之前发布的相同哈希,例如github.com/drduh/OS-X-Security-and-Privacy-Guide / blob / master / ...
djule5 2016年

8

为什么不检查签名呢?这样,您就不必依赖外部校验和。

以下是使用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

那么......签名如何帮助我检查下载的完整性?你能详细说说吗?
fartheraway 2014年

1
数字签名是一种验证文件未被篡改或损坏的方法,如果是,则将变为无效。数字签名基于密码学,设计非常难以伪造。
乔纳斯2014年

10
你怎么知道它是否无效?我在OS X Yosemite安装程序上运行此命令,然后尝试将文件添加到.app目录,并尝试修改version.plist,并且此命令的输出未更改。
Henrik N

@HenrikN应该是一个很好的问题; 如果您找到它(或自己制作),请分享链接。
Graham Perrin 2016年

@GrahamPerrin这是两年前的事情,所以我没有动力这样做,但如果你喜欢的话就去吧:)
Henrik N

1

补充10.10的接受答案 ......


10.10.1

安装OS X Yosemite.app的 1.6.7版(1014)

a673c2c6d967f4da2934b7d6cf3736936970b194


10.10.2

该应用程序的版本1.6.10(1017)

059f2603a91465bcee24c864d446da30df920f85

请注意,这与接受的答案的修订版2不同; 添加到该修订版的结果确实是10.10。1


10.10.3

该应用程序的版本1.6.16(1023)

dc4d4d0a7cd4aea4514025d23a58d05107369fa9


10.10.5

该应用程序的版本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


我的支票记录为.5

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$ 

我的支票记录为.3,.2和.1

$ 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
$ 

确定.3,.2和.1的校验和数据自写入磁盘后未发生变化

$ 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
$ 

确认10.10.1的应用程序版本是1.6.7

$ 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,我从未下载过安装程序。


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.