Termux Complete Tutorial May 2026

pkg reinstall python

Just like any Linux distribution, we start by updating the package lists and upgrading existing packages. Type the following:

pkg update && pkg upgrade -y

Important: Google Play Store has an outdated version of Termux (it no longer receives updates). You must install from F-Droid (the open-source app store).

Install the Termux:API app from F-Droid to access Android features: termux complete tutorial

pkg install termux-api

Then commands like termux-battery-status, termux-camera-photo, termux-notification, termux-dialog work.


If you see error messages regarding the "Welcome" script, run this command immediately: pkg reinstall python

termux-change-repo

Use the arrow keys to navigate, press Enter to select "Single Mirror," and choose one closer to your location.

Do you want to access your Termux terminal from your laptop? Just like any Linux distribution, we start by

pkg install openssh
passwd  # Set a password for the 'termux' user
whoami  # Returns 'u0_aXXX' – that's your username

Start SSH server: sshd (Note: runs on port 8022, not 22).
From laptop: ssh u0_aXXX@phone_ip -p 8022

Fix: Usually a memory issue. Close other apps or use termux-wake-lock to prevent Android from killing Termux during long builds.

Scroll to Top