Package manager for kindle
kterm
for the terminal
wget
for downloading (should come with kterm)
unzip
and/or tar
for extracting packages
Run the following commands on your kindle:
wget https://github.com/gingrspacecadet/kpm/releases/{release name}.sh
chmod +x {release name}.sh
./{release name}.sh
Check the wiki