Install streamrip in Termux
DJDoubleDThe following is a guide on how to install streamrip in Termux without any errors or effort, with just one quick command.
Table of Contents
- Preparation
- Install latest version of streamrip
- Configuration
- Downloading
- Install dev branch of streamrip (optional)
- Troubleshooting
- Credits
Preparation
Install a fresh instance of Termux v0.118.1 or higher, by either:
- Installing Termux through the F-Droid app from here.
- Download the correct Termux apk file for your device from their Github Releases page and installing the apk directly.
Install latest version of streamrip
Open Termux and copy-paste the following command in the prompt and press <enter>:
termux-setup-storage && termux-change-repo && pkg update -y && pkg upgrade -y && pkg install git python clang libjpeg-turbo ffmpeg zlib -y && pip install setuptools && cd /sdcard && git clone https://github.com/saghul/pycares && cd pycares && python setup.py install && cd /sdcard && rm -rf pycares && pip3 install streamrip && rip config path && cd ~ && clearAfter entering the above command, android will ask you to grant Termux storage permissions. Grant the permissions to continue.
Next Termux will ask you which type of mirror(s) for the repositories you want to use:

You can choose what you prefer. For this guide, just select the default option by pressing the "OK" button.
Next Termux will ask you which mirror group you want to use:

Just press "OK" again to continue.
During the installation, you will be prompted what to do with files that are already on your system but also have a version provided by the maintainer of a package that is being installed:

Each time the installation stops with a prompt as shown above, just press enter (default) and the installation will continue.
Configuration
After the installation is completed, you can open the streamrip configuration file with the following command:
nano ~/.config/streamrip/config.tomlThis will allow you to configure your preferences using the nano text editor:

Please note that the nano editor displays an area at the bottom with commands you can use and dedicated buttons:

Use the arrow buttons in this button area to navigate the cursor in the nano editor.
In order to have streamrip write the downloaded files to a location that is easily accessible using your phone's browser and/or media player, it is recommended to change the download folder to something like /sdcard/Music/StreamripDownloads/.
Next fill out your credentials for the streaming services you want to use in their dedicated sections of the config file.
In order to exit the nano editor and save the config file, you can just press "CTRL-X" followed by "Y" and "ENTER" ("Y" = yes to the question to save the file), as indicated in the image below:

Downloading
Now streamrip is installed, set-up and ready to download. For full usage instructions and configuration possibilities, check out the streamrip ReadMe & Wiki.


Install dev branch of streamrip (optional)
Sometimes features get published to the dev branch for testing before they are deemed stable enough to merge into the main branch.
If you want to use these features, follow the guide from the beginning but just replace the installation command with the following to install the streamrip dev branch:
termux-setup-storage && termux-change-repo && pkg update -y && pkg upgrade -y && pkg install git python clang libjpeg-turbo ffmpeg zlib -y && pip install setuptools && cd /sdcard && git clone https://github.com/saghul/pycares && cd pycares && python setup.py install && cd /sdcard && rm -rf pycares && pip3 install git+https://github.com/nathom/streamrip.git@dev && rip config path && cd ~ && clearTroubleshooting
If, for some reason, you are using a version of Termux below v0.118.1, thetermux-setup-storage command might not work. In this case, depending on your version of android, you'll need to give storage permissions to Termux after it's installation.
Storage permissions are given in the following way.
- Android < 11 :
Android Settings->Apps->Termux->Permissions->Storage - Android >= 11 :
Android Settings->Apps->Termux->Permissions->Files and media->Allow management of all files - Android >= 13 :
Android Settings->Apps-> (Advanced->)Special app access->All files access->Termux
Credits
This guide was compiled & tested by DJDoubleD based on the original instructions provided by TheKVT in the Firehawk52 Official Community.