This is the most reliable command-line method for Windows.
Several open-source and community-developed tools can unpack PS3 PKG files. The most notable are: ps3 pkg unpacker
This guide is for educational purposes and archival of games you legally own. Distributing copyrighted content is illegal. This is the most reliable command-line method for Windows