{"id":12436,"date":"2023-04-20T15:18:21","date_gmt":"2023-04-20T13:18:21","guid":{"rendered":"https:\/\/wp.jochen.hayek.name\/blog-en\/?p=12436"},"modified":"2023-04-20T15:18:22","modified_gmt":"2023-04-20T13:18:22","slug":"macos-pkg-file","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2023\/04\/20\/macos-pkg-file\/","title":{"rendered":"a macOS .pkg file \u2013 an xar archive file"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/.pkg\">https:\/\/en.wikipedia.org\/wiki\/.pkg<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/xar_(archiver)\">https:\/\/en.wikipedia.org\/wiki\/xar_(archiver)<\/a>\u00a0\u2013 using xar is pretty similar to tar<\/li>\n\n\n\n<li><a href=\"https:\/\/linux.die.net\/man\/1\/xar\">https:\/\/linux.die.net\/man\/1\/xar<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Inside the .pkg, you will find a file by the name *.pkg\/Payload. That&#8217;s in fact a gzipped cpio file, so this will show you its content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ gzip -cd *.pkg\/Payload | cpio -itv<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Inside the .pkg, you will find a file by the name *.pkg\/Payload. That&#8217;s in fact a gzipped cpio file, so this will show you its content:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[673],"tags":[1524,1077,1523,1522],"class_list":["post-12436","post","type-post","status-publish","format-standard","hentry","category-unix_utilities","tag-cpio","tag-gzip","tag-tar","tag-xar"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-3eA","jetpack_likes_enabled":true,"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/12436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=12436"}],"version-history":[{"count":2,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/12436\/revisions"}],"predecessor-version":[{"id":12440,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/12436\/revisions\/12440"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=12436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=12436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=12436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}