In the context of the PlayStation 3, PKG and RAP files are two halves of a whole used to install and license digital content:
.PKG (Package File): This is the actual installer that contains the game, update, or application data.
.RAP (Rif Activation Package): This is a small license file that contains the unique decryption key required to "unlock" the PKG. Without the RAP file, the installed PKG will usually return an error (like "Renewal of license is required") when you try to launch it. How to use them on a PS3
To use these files on a console with custom firmware (CFW) or PS3HEN, you typically follow these steps: Place the files:
Put your .pkg files in the root of a FAT32-formatted USB drive.
Put your .rap files into a folder named exdata (all lowercase) on the root of that same USB drive.
Install the PKG: On your PS3, go to Package Manager > Install Package Files > Standard and select your PKG. Activate the RAP:
If you are using PS3HEN, ensure HEN is enabled. Most modern versions of HEN and CFW will automatically "grab" the RAP file from the exdata folder on your USB the first time you launch the game.
Alternatively, you can copy the RAP files directly to the PS3 internal hard drive at /dev_hdd0/exdata/ using a file manager like multiMAN. How to use them on RPCS3 (Emulator) If you are using the RPCS3 emulator on a PC:
Simply drag and drop the PKG file into the emulator window to install it.
When prompted (or by dragging it in separately), provide the RAP file so the emulator can decrypt the game files.
PKG Files:
.pkgfiles are package files used by the PS3 to install games, demos, and other content.- These files contain the game's data, including the executable, assets, and other necessary files.
- PKG files are essentially archives that are decrypted and installed on the PS3's hard drive.
RAP Files:
.rapfiles, also known as "license files," are used in conjunction with PKG files to verify the legitimacy of the content being installed.- RAP files contain license information, including the content's ID, version, and other metadata.
- When a PKG file is installed, the PS3 checks the corresponding RAP file to ensure that the content is legitimate and authorized for installation.
Key Features:
- Encrypted: Both PKG and RAP files are encrypted to prevent tampering and unauthorized access.
- Verified Installation: The PS3 verifies the RAP file during installation to ensure that the content is legitimate.
- Content Management: PKG and RAP files are used to manage content on the PS3, including installation, updating, and deletion.
PKG and RAP File Structure:
- PKG files typically have a
.pkgextension and are stored in a specific directory on the PS3's hard drive. - RAP files have a
.rapextension and are stored in a separate directory.
Tools and Software:
- Several third-party tools and software are available that can create, edit, and manage PKG and RAP files, such as:
- PKGTool: A popular tool for creating and managing PKG files.
- RAPTool: A tool for creating and managing RAP files.
Security Considerations:
- Due to the proprietary nature of the PS3's file formats, modifying or tampering with PKG and RAP files can potentially void the console's warranty or lead to security issues.
These files play a crucial role in the PS3's content management system, ensuring that games and other content are installed and managed securely.
The Illegal Way (Piracy)
- Downloading PKG and RAP files for games you do not own is software piracy. This is illegal in virtually every country.
- Sharing RAP files is distributing copyrighted access keys. While the RAP file itself is tiny, it is derived from protected code.
- Using CFW to play downloaded games directly harms developers and publishers, especially smaller indie studios that relied on PSN sales during the PS3 era.
Scenario 3: Converting RAP to RIF (Manual Method)
If reactPSN fails, you can manually convert RAP files to RIF using RAP2RIF on a PC, then FTP the .rif file directly to:
/dev_hdd0/home/00000001/exdata/
(Where 00000001 is your user ID).
1. What Are They?
-
PKG file
A package file (like.exeon Windows). It contains:- Game data (digital games, DLC, updates, PSN games)
- Homebrew apps
- Game patches/updates
-
RAP file
A license/activation file (usually 2–4 KB).- Used to unlock digital content (PSN games, DLC) after installation.
- Without the matching RAP, the PKG will either ask for activation or show as a trial.
Key point: PKG = the content, RAP = the key to use it.
Workflow Summary:
- You place the
PKGfile on a USB drive. - You install the PKG via the PS3’s "Package Manager."
- You place the
RAPfile in a specific folder (/dev_usb000/exdata/). - You run a license activator (reactPSN or PSNpatch).
- The activator reads the RAP files and installs the corresponding licenses to your PS3’s internal memory (NAND/NOR).
- The game now boots without errors.
Can you install a PKG on a stock PS3?
No. A standard, unmodified PS3 will only install officially signed PKG files from the PlayStation Store. To install unlicensed or backup PKG files, you must have a console running Custom Firmware (CFW) or HEN (Homebrew Enabler).
The Community and Tools Around PKG and RAP Files
The community surrounding PS3 development and homebrew has been incredibly active and innovative. Various tools and software have been developed to handle PKG and RAP files, making it easier for users to manage their content. From simple tools that allow you to create and install PKG files to more complex software that can manage RAP files and digital rights, the ecosystem around these files is rich and diverse.
Step 1: Setting Up the USB Drive
- On your PC, create a folder on the USB root called
exdata. (Path:USB:/exdata/) - Copy all your
.rapfiles into thisexdatafolder. - Copy your
.pkgfiles to the root of the USB drive (or a folder namedpackages).