Home > Linux > Upack .pkg from MacOSX in Linux

Upack .pkg from MacOSX in Linux

January 19th, 2011 Leave a comment Go to comments

Small info how to unpack from .pkg file on linux. As it seems little hard to find out 😉

First you need xar – eXtensible ARchiver – available at http://code.google.com/p/xar/. Just download, unpack, configure, make , make install 😉

Next , you need just do xar -t -f something.pkg –  it will extract files , for example (Bom PackageInfo , Payload, Scripts). All data should be in Payload file.

Last one , just uncompress that Payload file – gunzip -c Payload | cpio -i

All done, MacOSX @#&*$#

 

  1. Musafar
    August 30th, 2016 at 09:34 | #1

    “Next , you need just do xar -t -f something.pkg – it will extract files”
    where is extracted files, I could not find working directory

    thanks

  2. Musafar
    August 30th, 2016 at 09:36 | #2

    mz@mz-len:~/Desktop/2$ xar -t -f 2.pkg
    library.pkg
    library.pkg/PackageInfo
    library.pkg/Bom
    library.pkg/Payload
    library.pkg/Scripts
    Distribution
    Resources
    Resources/en.lproj
    Resources/en.lproj/background
    Resources/en.lproj/License
    Resources/ja.lproj
    Resources/ja.lproj/background
    Resources/ja.lproj/License
    Resources/zh-Hans.lproj
    Resources/zh-Hans.lproj/background
    Resources/zh-Hans.lproj/License

  1. No trackbacks yet.

%d bloggers like this: