How to Install Termux on Android (Without Root) | Setup Termux | Termuxgenius
How to Install Termux on Android Without Root
Termux turns an Android phone or tablet into a powerful command-line environment without requiring root access. You can use it to learn Linux commands, run Python scripts, work with Git, automate tasks, connect to remote servers, and experiment with development tools directly from your Android device.
The most important part of installing Termux is getting it from a supported source and keeping the main app and its add-ons compatible. This guide explains how to install Termux, configure storage access, update packages, install essential tools, and troubleshoot common beginner problems.
Hands-on testing: The installation steps in this guide were tested on an Android device using Termux without root access. Screenshots are included where they help explain the setup process.
What Is Termux?
Termux is an Android terminal application that provides a Linux-style command-line environment and a package-management system for installing additional software. It runs within Android's normal application environment, so root access is not required for normal Termux installation and use.
With Termux, you can:
- Learn Linux and shell commands
- Run Python, Bash, JavaScript, and other scripts
- Install and use Git
- Manage files from the command line
- Build small command-line applications
- Run lightweight local development environments
- Connect to remote servers using SSH
- Use networking and security tools for authorized testing
Termux is primarily a command-line environment. It should not be treated as a complete replacement for a desktop Linux computer.
Can You Install Termux Without Root?
Yes. You do not need to root your Android phone to install or normally use Termux.
Termux operates within Android's application permissions. Some advanced tasks may require additional permissions or configuration, but rooting the device is not part of the normal installation process.
Where to Download Termux
Download Termux from a distribution source associated with the Termux project rather than an unknown APK website. Unofficial APK mirrors may provide outdated or modified builds.
For most users, the practical options are the project's F-Droid distribution and the official Termux GitHub releases.
Important: Keep the main Termux app and its companion add-ons from compatible sources. Different signing keys can cause installation or integration problems when applications from different sources are mixed.
Install Termux from F-Droid
- Open the official Termux page on F-Droid. Click here
- Install the F-Droid client if you do not already have it.
- Search for Termux.
- Install the Termux application provided through the Termux project.
- Open Termux after installation.
Install Termux from Official GitHub Releases
Advanced users can download Termux from the official termux/termux-app GitHub repository.
- Open the official Termux app repository on GitHub.
- Open the Releases section.
- Select the appropriate APK for your device.
- If Android asks for permission to install from that source, allow it.
- Install the APK and open Termux.
If another Termux build is already installed, check its source before switching. Applications signed with different keys may not install directly over one another.
Update Termux After Installation
After opening Termux for the first time, update the package lists and upgrade installed packages:
pkg update && pkg upgradeWhen i update and upgrade the screen is given below
This gives you the latest package information available to your configured repositories and updates installed packages.
If you later encounter an Unable to locate package error, updating the package lists is one of the first things to check.
Related guide: How to Fix "Unable to Locate Package" in Termux
Set Up Storage Access in Termux
Termux has its own application environment. If you want to work with files in Android's shared storage, such as Downloads, run:
termux-setup-storageWhen you enter this code, it will ask you Do you want to continue? (y/n) You will enter y and then click allow on the screen.
Android should display a permission request. Allow the requested access when prompted.
After the setup completes, Termux normally creates a ~/storage directory containing links to accessible shared-storage locations.
You can check the available directories with:
ls ~/storageIf storage access does not work, check Termux's permissions in Android Settings. The exact permission names and options can vary depending on your Android version and device manufacturer.
For more troubleshooting steps, see How to Fix Termux Storage Permission Problems.
You can also learn more about how Termux handles internal and shared storage in our Termux Storage Guide.
Install Essential Termux Packages
You do not need to install every available package when you first set up Termux. Start with the tools that match your workflow.
A useful basic development toolkit is:
pkg install git python curl wget nanoIf you work with JavaScript or Node.js, install Node.js separately:
pkg install nodejs| Package | Purpose |
|---|---|
git |
Version control and Git repositories |
python |
Running Python programs and scripts |
curl |
Making network requests from the command line |
wget |
Downloading files |
nano |
Editing text files in the terminal |
nodejs |
Running JavaScript applications outside a browser |
Useful next steps from TermuxGenius:
- How to Install Python in Termux
- How to Install Git and Clone Repositories in Termux
- How to Install Node.js and npm in Termux
- How to Use Nano and Vim in Termux
Basic Termux Commands for Beginners
Once Termux is installed, these commands are enough to start navigating the command line:
| Command | Purpose | Example |
|---|---|---|
pwd |
Shows the current directory | pwd |
ls |
Lists files and folders | ls |
ls -la |
Lists files including hidden entries | ls -la |
cd |
Changes directory | cd ~/storage/downloads |
mkdir |
Creates a directory | mkdir project |
touch |
Creates an empty file | touch notes.txt |
cat |
Displays file contents | cat notes.txt |
python |
Runs a Python program | python script.py |
For a larger command reference, see our Termux Basic Commands List for Beginners.
What Can You Do With Termux?
After the basic installation is complete, you can build your Termux environment around a specific goal instead of installing unnecessary software.
Run Python Scripts
Python is one of the most useful languages to start with in Termux. You can write scripts, automate repetitive tasks, process files, and create small command-line applications directly on Android.
See: How to Install Python in Termux
Use Git and GitHub
Termux can provide a convenient Git environment for cloning repositories, editing source code, creating commits, and working with remote repositories.
See: How to Install Git in Termux and Clone a Repository
Connect to Remote Servers With SSH
If you manage a server or another computer that you are authorized to access, you can use SSH from Termux to connect to it remotely.
See: How to Use SSH in Termux to Connect to a Remote Server
Automate Tasks With Bash
Bash scripts can automate repetitive command-line tasks. Termux makes it possible to create and execute these scripts directly from an Android device.
See: How to Create and Run Bash Scripts in Termux
Useful Termux Add-ons
The main Termux application can be extended with companion applications for specific Android integrations.
Termux:Widget
Termux:Widget lets you create Android home-screen shortcuts for selected Termux scripts.
Learn how to install and use Termux:Widget.
Termux:API
Termux:API allows supported Termux commands and scripts to interact with selected Android features, such as notifications, the clipboard, sensors, and other device functions.
Learn more about Termux vs Termux:API.
Important: Install Termux and its add-ons from compatible distribution sources. Mixing applications signed by different sources can cause installation or integration problems.
Common Termux Problems
Unable to Locate Package
If Termux cannot find a package, first update your package lists:
pkg updateThen check that the package name is correct and that you are using a supported Termux installation.
Read our detailed guide: How to Fix Unable to Locate Package in Termux
Termux Storage Is Not Working
Run:
termux-setup-storageIf the storage links do not appear, check Termux's Android permissions and then follow our Termux storage permission troubleshooting guide.
Termux Stops Running in the Background
Some Android devices apply aggressive battery or background-process restrictions. These restrictions can affect long-running Termux processes.
If a script or server stops when Termux is in the background, check your phone's battery and background-app settings. The available options depend on the Android version and device manufacturer.
For longer-running workflows, our guide on using tmux in Termux may also be useful.
Termux Crashes or Shows a Black Screen
If Termux opens incorrectly, crashes, or displays a black screen, avoid immediately deleting the application and its data because that can remove your Termux environment.
Instead, check the installation source and follow a structured troubleshooting process.
See: How to Fix Termux Black Screen or Crash Problems
Is Termux Safe?
Termux is a legitimate tool for Android command-line work, programming, automation, and learning. However, commands and scripts executed inside Termux can still affect your files and device depending on the permissions they receive.
Follow these basic precautions:
- Download software from reputable sources.
- Read unfamiliar shell commands before executing them.
- Inspect scripts instead of blindly piping unknown downloads into a shell.
- Do not give applications unnecessary permissions.
- Use network and security tools only on systems you own or have explicit permission to test.
For authorized security learning, see our Termux ethical hacking guide.
Common Mistakes to Avoid
- Downloading Termux from an unknown APK website
- Mixing the main Termux app with incompatible add-ons
- Installing large numbers of packages without knowing what they do
- Ignoring package-update errors
- Running commands copied from unknown sources without understanding them
- Assuming storage permissions work identically on every Android phone
- Testing networks or systems without authorization
Frequently Asked Questions
Can I install Termux without rooting my Android phone?
Yes. Root access is not required for normal Termux installation and use.
Where should I download Termux?
Use a distribution source associated with the Termux project, such as its F-Droid distribution or official GitHub releases. Avoid random APK download websites.
Can Termux access Android's internal storage?
Termux can access supported shared-storage locations after you grant the required Android permission and run termux-setup-storage.
Why does Termux say “Unable to locate package”?
The package lists may be outdated, the package name may be incorrect, or there may be a repository configuration problem. Start by running pkg update and then investigate the specific error.
Can I install Python in Termux?
Yes. Python is available through the Termux package system and can be used for scripts, automation, and command-line applications.
Can I use GitHub from Termux?
Yes. After installing Git, you can clone repositories, edit files, create commits, and work with remote Git repositories from Termux.
Can Termux be used for cybersecurity?
Termux can run various networking and security tools. These should be used for learning, diagnostics, or authorized security testing only.
Can Termux replace a Linux computer?
Termux provides a capable command-line environment on Android, but it does not automatically provide the same hardware, graphical desktop, applications, and workflow as a Linux PC.
Final Thoughts
Installing Termux on Android does not require root access. Start by installing it from a supported source, update the package environment, configure storage access if you need Android files, and then install only the packages relevant to your work.
If you are completely new to Termux, the best next step is to learn the basic commands before moving into Python, Git, SSH, automation, or security tools.
Start here: Termux Basic Commands for Beginners




Join the conversation