Post: How to unpack and pack PKG's.
07-06-2010, 05:18 AM #1
Michael
I love smart girls. ♥
(adsbygoogle = window.adsbygoogle || []).push({}); Don't post this anywhere else without giving me, Michael, credit.

You need a root account in Linux for this! I used Ubuntu 10.04. The SDK is for Windows as well, but there's no readme for the files. So I set up VMWare with Ubuntu so I can use Linux inside Windows.

For Linux:
In Ubuntu, Fedora, Yellow Dog, etc, type "sudo apt-get install yum" in Terminal.
Type in your root password.
Now, look for a repository with PS3 binaries. You can get some from PS3Bodega.
You need the PS3 SDK kit as well, the full one. You can't get the full 600MB one from pretty much anywhere unless you search. I can't give a link since it's not allowed.
With yum and the RPM installed, now you can just type "yum ps3unpkgr" in Terminal instead of code editing.
When you get the SDK and install the binaries (the RPM is right there), you can use "ps3unpkgr -x <PKG name>" and unpack everything.
To pack it into a PKG again, use "ps3unpkgr -c <PKG name>" and it will pack.
I'm not going to sit and explain everything so thoroughly if you don't know how to do it. If you really are wanting more, reach me another way.

To do this in Windows:
Download the PS3 SDK.
Go into the "host-win32" folder.
Go into "bin."
In Command Prompt, drag "make_package_npdrm.exe" into the prompt, and use -x <PKG name> to decompress. Use -c <PKG name> to compress.
This unpacker will only work for certain PKGs! Luckily, the patch falls under this category.

You must login or register to view this content.
TinyPic resizing my monitor.. wow.
Last edited by Michael ; 07-11-2010 at 09:36 PM. Reason: I added how to do it on Windows.

The following 18 users say thank you to Michael for this useful post:

<Jimbo>, closebeat, D3cH, deathmore, Grandad Trotter, i_am_legend147, IDontbreak, iiFaMoUzZ-, Macdaddy4sure, Maty360414, Ninja, Nolzad0, ps3user123, RyGuy88, SupaTrollioBros, ThisIsBio, zasz
07-08-2010, 06:38 AM #47
retop56
Pokemon Trainer
So can anyone confirm whether this works or not?
07-08-2010, 06:39 AM #48
CBot
Brute
Show a pic of your cmd in windows please?
07-08-2010, 06:58 AM #49
divybc
Former Staff
Originally posted by pr0z View Post
It doesn't decompress... I don't know what's wrong, I'm going to try it on linux, Linux pwnz Winky Winky


link me the correct link to run linux on windows +rep 4 u and thnx if you do
07-08-2010, 07:03 AM #50
retop56
Pokemon Trainer
Has anyone looked at this yet?? Maybe someone with programming experience can use this.

You must login or register to view this content.
07-08-2010, 08:30 AM #51
mr.e
Haxor!
Originally posted by retop56 View Post
Has anyone looked at this yet?? Maybe someone with programming experience can use this.

You must login or register to view this content.


This is for Solaris pkg files not the PS3 pkg files. I doubt the file format will be the same.

Originally posted by From

PkgTools is a set of utilities, released under the BSD license, which can be used to aid in the development of native Solaris packages
07-08-2010, 02:20 PM #52
hmmm.. not working for me just keeps on comeing up unable to open file :S and ideas on how to fix this?
07-08-2010, 02:27 PM #53
Big Poppa Bren
Treasure hunter
No body is gonna be able to unplug the pkg!!! Does the fact Sony use unique keys mean nothing???? The only way to unpack would be to get the programs and permissions from iw for this particular pkg!!

Everybody is waisting there time

The following user thanked Big Poppa Bren for this useful post:

alexkapi12
07-08-2010, 02:28 PM #54
edh649
Keeper
Originally posted by mr.e View Post
I don't think -c is the compress option.

    >make_package_npdrm.exe --help

usage: [revision 1061]

make_package_npdrm [options] config-file target-directory
-v | --verbose print verbose messages.
-f | --nofilelimit no limitation to file find.

make_package_npdrm [options] npdrm-package
-c | --check check package format.
-l | --list list packaged files.

make_package_npdrm [options]
--version print revision.
--help print help message.


Here's the output from some of my tests with this program under windows.

    
>make_package_npdrm.exe -c UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg
This file was finalized: "UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg"

>make_package_npdrm.exe -l UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg

Listing: "UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg"
+) overwrite, -) no overwrite
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

>make_package_npdrm.exe -x UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg

Extract: "UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg"
+) overwrite, -) no overwrite

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.


For both the extract and list options I received a popup saying make_package_npdrm.exe has stopped working.

Am I missing a piece of the configuration here or maybe an incomplete copy of the sdk?


To get rid of it closing, write
    
>make_package_npdrm.exe -x UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg +

(to overwrite it)
OR
    
>make_package_npdrm.exe -x UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg -

(to not overwrite it)

I.E. To fix it add
    -
at the end to not overwrite and
    +
to overwrite it

thanks,
edh649
Last edited by edh649 ; 07-08-2010 at 02:29 PM. Reason: Fixed BB code

The following user thanked edh649 for this useful post:

Vampytwistッ
07-08-2010, 03:50 PM #55
Originally posted by edh649 View Post
To get rid of it closing, write
    
>make_package_npdrm.exe -x UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg +

(to overwrite it)
OR
    
>make_package_npdrm.exe -x UP0002-BLUS30377_00-MW2P000000000010-A0110-V0100-PE.pkg -

(to not overwrite it)

I.E. To fix it add
    -
at the end to not overwrite and
    +
to overwrite it

thanks,
edh649


It doesn't work.

You must login or register to view this content.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo