{"id":394,"date":"2011-07-21T15:39:57","date_gmt":"2011-07-21T20:39:57","guid":{"rendered":"http:\/\/www.brunerd.com\/blog\/?p=394"},"modified":"2011-07-21T17:34:15","modified_gmt":"2011-07-21T22:34:15","slug":"restore-previous-safari-version-from-safariarchive-tar-gz","status":"publish","type":"post","link":"https:\/\/www.brunerd.com\/blog\/2011\/07\/21\/restore-previous-safari-version-from-safariarchive-tar-gz\/","title":{"rendered":"Restore previous Safari version from .SafariArchive.tar.gz"},"content":{"rendered":"<p>Did that new Safari update break something? Want your old version back?<br \/>\nSimple. Thanks to Apple&#8217;s prescient yet secretive engineers, there&#8217;s a way.<br \/>\nLet me show you.<\/p>\n<p>When Safari does an upgrade it saves the previous version in this location:<br \/>\n<code>\/Library\/Application\\ Support\/Apple\/.SafariArchive.tar.gz<\/code><\/p>\n<p>To restore we just need to tell tar to expand the archive to the root folder:<br \/>\n<code>sudo tar -xvf \/Library\/Application\\ Support\/Apple\/.SafariArchive.tar.gz -C \/<\/code><\/p>\n<p>To be complete, delete the receipt from \/var\/db\/receipts, in this case it is Safari 5.1<br \/>\n<code>sudo rm -rf \/private\/var\/db\/receipts\/com.apple.pkg.Safari51SnowLeopard.*<\/code><\/p>\n<p>Reboot. (since we&#8217;ve just replaced a whole bunch of public and private frameworks the OS uses)<\/p>\n<p>Done.<br \/>\n(Whew. This will fix the early Safari 5.1 adopters at work who now can&#8217;t use our Java based timesheet app since upgrading!)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did that new Safari update break something? Want your old version back? Simple. Thanks to Apple&#8217;s prescient yet secretive engineers, there&#8217;s a way. Let me show you. When Safari does an upgrade it saves the previous version in this location: \/Library\/Application\\ Support\/Apple\/.SafariArchive.tar.gz To restore we just need to tell tar to expand the archive to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,12,1],"tags":[],"class_list":["post-394","post","type-post","status-publish","format-standard","hentry","category-apple","category-os-x","category-scripting","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/posts\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":7,"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/posts\/394\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/posts\/394\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/media?parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/categories?post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.brunerd.com\/blog\/wp-json\/wp\/v2\/tags?post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}