osx - View package content created with productbuild -


i created pkg file productbuild utility , i'd see content. how can that?

i'm under macos 10.9.5.

you extract package temporary directory pkgutil.

pkgutil --expand pkg-path dir-path  expand flat package @ pkg-path new directory specified dir-path. 

there third party tool called pacifist, charlessoft. can view contents of package without extracting it.

update

inside pkg archive (which xar archive) may encounter following files:

  • bom: mac os x bill of materials (bom) file

the mac os x installer uses file system "bill of materials" determine files install, remove, or upgrade. bill of materials, bom, contains files within directory, along information each file. file information includes: file's unix permissions, owner , group, size, time of last modification, , on. included checksum of each file , information hard links. [man bom]

you may list contents of bom file lsbom command. , create file mkbom.

  • packageinfo: xml document text

this xml file contains general information package.

  • payload: gzip compressed data, unix

this gziped cpio archive. may extract contents current directory tar command:

$ tar -xf payload 

or extract specified directory dir-path:

$ tar -c dir-path -xf payload 

optionally may list contents of payload archive with:

$ tar -tf payload 

you should able recreate archive dir-path with:

$ tar --format cpio -czf payload dir-path 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -