Termux ships with a minimal bootstrap environment that provides a working shell and the APT package manager. From there you can install any of the thousands of packages maintained in the termux-packages repository, ranging from compilers and interpreters to editors and network tools.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/termux/termux-app/llms.txt
Use this file to discover all available pages before exploring further.
pkg vs apt
pkg is a wrapper around apt that adds a few conveniences: it automatically runs apt update before installing, provides shorter subcommand names, and handles some Termux-specific quirks. You can use either tool; pkg is recommended for interactive use because it reduces the number of commands needed for common operations.
- pkg
- apt
Always run
pkg update or apt update before installing new packages. Package lists can become stale, causing “unable to locate package” errors.Common packages
Languages and runtimes
python, nodejs, ruby, perl, lua54Development tools
gcc, clang, make, cmake, binutilsVersion control
git, gh (GitHub CLI)Editors
vim, neovim, nano, emacsNetwork and remote access
openssh, curl, wget, nmap, netcatShells
bash, zsh, fish, dashPackage repositories and sources
Termux packages are hosted across several repositories. The main repository contains the majority of packages. Additional repositories exist for specific categories:| Repository | Contents |
|---|---|
stable (default) | Core Termux packages |
x11 | X11-based graphical packages |
root | Packages requiring root access |
$PREFIX/etc/apt/sources.list. Additional per-repository files live in $PREFIX/etc/apt/sources.list.d/. You can inspect and edit these files directly, or use pkg to manage them.
The bootstrap environment
When Termux starts for the first time (or after the prefix directory is absent), it automatically extracts a bootstrap zip into$PREFIX (/data/data/com.termux/files/usr). This zip is bundled with the APK and provides the minimal environment needed to run apt and start a shell. The bootstrap packages themselves are built and released from the termux/termux-packages repository.
Once the bootstrap is installed, use pkg upgrade to bring all bootstrap packages up to date:
Finding available packages
Search for packages by name or keywords:build.sh file with version info and a description.