Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: 1.3.0-apple2 and X11 Package Preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1.3.0-apple2 and X11 Package Preview



Jeremy Huddleston wrote:

On Dec 2, 2007, at 03:03, Harald Hanche-Olsen wrote:

Hmm, I didn't know a .pkg could be a single file. It seems they always come as a bundle wrapped in a .dmg instead, which makes it easier to look inside if one is so inclined. Any specific reason you went for this solution? Is it easier to build that way?

Yeah, I noticed that too. I didn't choose it this way, it's just how it happened. I first put it in a dmg, but then noticed that it was just a file and not a dir. I set Leopard as the minimum requirement, so maybe Leopard's installer has support for single file packages (maybe bzipped tarballs with some meta-data... but I dunno).

These new one-file pkgs are xar archives. The Leopard system DVD uses them, too. To list their contents:


 xar -tf X11-2.1.0.pkg

To extract into the current directory:

 xar -xf X11-2.1.0.pkg

After this, you have a structure like inside a traditional *.pkg bundle. The files "Payload" and "Scripts" are gzipped pax archives, like the traditional "Archive.pax.gz".

--
Martin


_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) This email sent to email@hidden
References: 
 >1.3.0-apple2 and X11 Package Preview (From: Jeremy Huddleston <email@hidden>)
 >Re: 1.3.0-apple2 and X11 Package Preview (From: Harald Hanche-Olsen <email@hidden>)
 >Re: 1.3.0-apple2 and X11 Package Preview (From: Jeremy Huddleston <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.