How to install NZBGet/SABnzbd in Termux on Android 5

The few versions of NZBGet and SABnzbd apks for Android I tried were either not fully functioning or outdated.


I managed to compile NZBGet as package for Termux and submitted it to the app’s repository (see pull request) — let’s hope it will be included. Intil then I included binaries for all architectures.

Running SABnzbd required only installing few dependencies.



DOWNLOAD: I put the install scripts on Github and included instructions for quick install.

TIP: It is possible to configure both apps to download and/or unpack files to external/removable storage (like SD card with capacity of hundreds of GB). Just run once “termux-setup-storage” and you will be to reference the path “/data/data/com.termux/files/home/storage/external-1”.

├── dcim -> /storage/emulated/0/DCIM
├── downloads -> /storage/emulated/0/Download
├── external-1 -> /storage/34BA-57D4/Android/data/com.termux/files
├── movies -> /storage/emulated/0/Movies
├── music -> /storage/emulated/0/Music
├── pictures -> /storage/emulated/0/Pictures
└── shared -> /storage/emulated/0

Files downloaded here will actually be in “/storage/XXXX-XXXX/Android/data/com.termux/files” — but both video players (like MX Player) or file managers (like Solid Explorer) will be able to access that (without any non standard requirements like root). I bookmarked that location in Solid Explorer for faster navigation.

Saving files to any other folder on SD card is not possible for native (C/C++) apps like these running in Termux as access to SD card “can be requested only from Java”.


None of the apps requires you to type anything to the terminal for managing downloads — as they both have web frontends. The only requirement is the startup:

# Start NZBGet
nzbget -D

# Stop NZBGet
nzbget -Q
# Start SABNzbd
sabnzbd start

# Stop SABNzbd
sabnzbd stop

I also created simple scripts for use with Termux:Task (for free at F-Droid) so any service can be started/stopped via few taps. To use the tasks, create them in Tasker — the install scripts already put the requirements in the right place (use scripts and with following arguments: start/stop/restart).

The scripts also open the program specific url on start (http://localhost:6789 for NZBGet and http://localhost:8080 for SABnzbd).

  • James Weatherly

    Sorry for the super noob question but I’ve never used Termux. I’m using a rooted Nvidia Shield TV and have been looking for a solution to run an NZB server on the Sheild and being able to remotely “push” a download to the Server. I’m currently using NZB Leech (Android version) which works fine but I cannot push a download to it. It seems like this may be a solution but this seems a bit daunting to me since I’m a complete noob.

    Is there a step by step guide I can use to get this up and running? Thanks in advance!

    • Marcel Dopita

      Both NZBGet and SABnzbd are full featured downloaders and although I haven’t used all features on Android, they should offer the same capabilities for push (upload via browser, from watched dir, download via RSS feed). Connecting to it is the same as it would run on other computer in your network.

      I’m not sure if there are any detailed guides but the good thing is that the most installation and configuration details are (more or less) just like when installing on any other Linux machine. You should be able to find help on the apps forums or I can answer any specific question.

      Maybe you could start with this (one click) version of NZBGet (But its compatibility may be limited compared to this Termux setup)

      • James Weatherly

        Thanks for the reply and your guide. I got SABNZBD installed and I’m learning as I go along. Is there anyway to change the script a different host IP? Local host and are only accessible locally and I need to find a way to change the SABnzbd host to access this remotely. Whenever I change it all hell breaks loose and I can’t seem to get back into the server or change the config file back to default.

        • Marcel Dopita

          One way would be changing it directly in the SABnzbd interface – changing “SABnzbd Host” from “” to “”.

          • James Weatherly

            That’s an option and I know how to change it but doesn’t that impact the tasker task?