How to Install Termux on Android: A Complete Guide for Beginners in 2026
Picture turning your Android phone into something closer to a full Linux workstation — one where you can run Python scripts, compile small programs, and even manage a local web server, all from the phone in your pocket. Sounds like a stretch? It isn't. With an app called Termux, you can build exactly that kind of environment, no root access required, and it costs nothing. This guide walks through installing it safely and setting it up the right way from the start.
What Termux Actually Is
Termux isn't just a terminal app that looks like Linux — it functionally is a Linux environment, running alongside Android rather than replacing it. I've spent years working with the LAMP stack on traditional servers, and for a long time I assumed Linux education required a proper computer. That assumption didn't survive the first time I saw students learning shell commands on a secondhand Android phone, sitting outside with no laptop in sight. Termux is what makes that possible.
It gives you package management through APT, much like you'd find on Debian or Ubuntu, letting you install real software rather than toy versions of it. And because it doesn't touch root, Android's security model stays fully intact — you're not opening up the device, just adding a serious terminal on top of it.
By the end of this guide, you'll have Termux installed correctly, configured, and ready for whatever you want to build or learn next.
How Termux Fits Into Android
Termux isn't a virtual machine and it isn't an emulator faking a Linux experience — it runs through a compatibility layer that talks directly to Android's file system and hardware, while still respecting the sandboxing that keeps the OS secure. Once installed, you get access to a genuinely large repository of Linux packages: programming languages like Python, Node.js, and Ruby; developer tools like Git and Nmap; text editors like Vim and Nano; even compilers, if you want to build software directly on your phone.
You're working in a real Bash or Zsh shell — navigating directories, writing scripts, managing running processes — the same fundamentals you'd learn on a laptop, just running on hardware you probably already carry everywhere.
A Few Things Most Guides Skip
Most installation walkthroughs cover the basics and stop there. A handful of details tend to get left out, though, and they're worth knowing before you start:
- The Play Store version is abandoned. It hasn't been updated in years and carries known security issues. Installing from F-Droid or GitHub isn't just the "better" option — it's the only one that actually works properly anymore.
- Android 12 and later can kill your session unexpectedly. You might see
[Process completed (signal 9) - press enter]out of nowhere. This comes down to Android's more aggressive process management, and it's fixable with a few settings changes. - Plugins have to match your Termux source. Because add-ons use a shared signature key, a plugin installed from a different source than your main app simply won't install. Keep everything from the same place — all F-Droid, or all GitHub.
- GitHub builds are signed with a public test key. That's fine when you download directly from the official repository, but it does mean a copy from anywhere else can't be trusted the same way.
- Termux isn't limited to typical Linux tasks. With the Termux:API add-on, scripts can tap into Android-specific features — sensors, notifications, and more — things you wouldn't normally touch from a standard Linux terminal.
Comparing Your Installation Options
| Feature | F-Droid (Recommended) | GitHub Builds | Google Play Store (Avoid) |
|---|---|---|---|
| Update frequency | Stable, may lag a few days behind | Instant, latest features first | Abandoned — no updates |
| Security | Signed with F-Droid's official key | Public test key (fine from official source) | Known unpatched vulnerabilities |
| Package compatibility | Full repository access | Full repository access | Outdated, limited packages |
| Ease of installation | Simple APK download | Manual download from releases page | Familiar, but not worth using |
| Plugin ecosystem | Fully compatible | Compatible with GitHub-sourced plugins | Severely limited |
For a deeper walkthrough of the install process itself, the How to Install Termux on Android guide covers the download and setup steps in more detail than we have room for here.
Step-by-Step: Installing Termux on Android
Step 1: Download F-Droid
Go to the official site at f-droid.org and download the APK. You'll likely need to enable "Install from unknown sources" when prompted — this step exists because Termux's maintained build isn't available through the Play Store anymore.
Step 2: Install Termux Through F-Droid
Open F-Droid, search for "Termux," and select the official listing published under the Termux project. Tap install and wait for it to finish. The initial download is a minimal base system — you'll add packages afterward as you need them.
Step 3: Run Your First Update
Open Termux and immediately run:
This refreshes your package sources and brings the base system up to date. Skipping this step is the most common reason people run into confusing errors later on.
Step 4: Set Up Storage Access
This creates a symbolic link inside your Termux home directory pointing to your phone's internal storage, so you can move files between Termux and the rest of your device.
Step 5: Install Your Core Tools
A solid starting set:
That covers scripting, version control, file editing, and downloading — enough to start building right away.
Step 6: Explore Additional Repositories If You Need Them
Specialized tools live in supplementary repos — the X11 repo for graphical applications, or the unstable repo for cutting-edge packages. Enable what you need with pkg install [repository-name].
Getting More Out of Termux
Once the basic install is working, a few habits make the experience noticeably better.
Swapping the default shell for Zsh with Oh My Zsh gets you better tab completion and a more readable prompt — small thing, but it adds up over daily use. If you want scripts or an SSH server to start automatically, Termux's boot functionality (via the ~/.termux/boot/ directory, using the Termux:Boot add-on) handles that without any manual restarting.
It's also worth understanding that pkg isn't a separate package manager — it's a simplified wrapper around APT, so anything you know about Debian-style package management still applies.
Backups are easy to forget until you need one. This command saves your full environment:
And if you're on Android 12 or newer and keep losing sessions, check your battery optimization settings for Termux and look into the phantom process killer settings — disabling aggressive optimization for the app usually solves it.
If cybersecurity is what drew you to Termux in the first place, the unstable repository opens the door to frameworks like Metasploit for learning penetration testing concepts. That said, this only belongs on networks and systems you own or have explicit permission to test — treat it strictly as a learning environment, not a shortcut around that rule. On the development side, installing Python via pip, Node.js via npm, and Ruby gems gives you a full scripting toolkit, and pairing any of it with Termux's API integration lets you write scripts that actually respond to what's happening on the phone itself. Many experienced users also run Termux with SSH — either hosting a server on the phone for remote access, or using Termux as the client to manage other machines.
Where to Go From Here
Getting Termux installed correctly is really just the opening step. Once storage access is set up, packages are current, and you've got a feel for the repository system, you're standing on the same foundation as anyone learning Linux on a full-sized computer — just working from a phone. The next stretch is about practice: customizing your workflow, automating small tasks, and getting comfortable enough that reaching for the terminal feels normal rather than intimidating.
Take your time working through commands one at a time, and don't stress about breaking something — a fresh reinstall takes a few minutes if you ever need to start over.
Frequently Asked Questions
Can I install Termux on Android without root access?
Yes, entirely. Termux is built to run within Android's standard app sandbox, using extra permissions only for storage and device features when you grant them. No special system access is needed — it works the same way on any device running Android 7.0 or later.
Why shouldn't I install Termux from the Google Play Store?
The Play Store version stopped receiving updates years ago, which means it's missing security patches and doesn't work properly with current package repositories anymore. The maintainers themselves recommend using F-Droid or the official GitHub releases instead.
What commands should I run right after installing?
Start with pkg update && pkg upgrade to bring everything current, then termux-setup-storage for file access. From there, pkg install python git nano gives you a reasonable starting toolkit.
How do I access my phone's storage from Termux?
After running termux-setup-storage, a storage folder appears in your Termux home directory, containing links to different storage areas on your phone. The shared folder usually maps to your internal storage, so files move easily between Termux and your other apps.
Is it safe to use Termux on my primary phone?
Generally, yes — as long as you install it from F-Droid or GitHub and keep it updated. The one thing worth being deliberate about is security tooling: only ever test networks or systems you own or have clear permission to test.
Keep a full reference handy while you practice navigating, installing packages, and writing your first scripts.
See the Full Termux Commands List

Join the conversation