Installing KPM
This guide will walk you through the process of installing KPM on your Kindle device.
Prerequisites
Before installing KPM, make sure you have the following:
- Jailbroken Kindle: KPM requires a jailbroken Kindle device
- KTerm: Terminal emulator for Kindle
- curl: For downloading files (usually comes pre-installed with KTerm)
- unzip and/or tar: For extracting packages
Installation Steps
To install KPM on your Kindle:
- Download the latest KPM release from GitHub Releases.
- Transfer the binary to your Kindle.
- Make it executable:
chmod +x kpm
- Run KPM:
./kpm
See Usage for basic commands.
What the Installation Script Does
The installation script performs the following tasks:
- Makes the root filesystem writable (
mntroot rw) - Creates necessary directories
- Downloads the KPM binary to
/usr/local/bin/kpm - Sets up the package list at
/mnt/us/kpm/package_list.conf - Creates configuration files in
/etc/kpm/ - Creates the package directory at
/mnt/us/kpm/packages/ - Adds KPM's bin directory to your PATH
Directory Structure
After installation, KPM will create the following directory structure:
/usr/local/bin/kpm # KPM binary
/etc/kpm/ # Configuration files
├── kpm.conf # Main configuration
└── kpm_mirrors.conf # Mirror URLs
/mnt/us/kpm/ # KPM data directory
├── packages.list # List of installed packages
└── packages/ # Packages directory
└── bin/ # Binaries from packages
Troubleshooting
If you encounter any issues during installation:
- Make sure your Kindle is connected to the internet
- Verify that
curlis properly installed (should come with KTerm) - Check if you have sufficient storage space (at least 5MB free)
- Make sure you're running the installation script as root
- Ensure the root filesystem is mounted as read-write (
mntroot rw)
Common issues:
- "Permission denied" errors:
- Run
mntroot rwbefore installation to make the filesystem writable - Make sure you're running the script as root
- "Command not found" after installation:
- Try restarting KTerm or logging out and back in
- Check if
/mnt/us/kpm/packages/binis in your PATH
If you continue to have problems, please visit our Support page for additional help.