Install Termux
Termux is a terminal emulator for Android that gives you a Linux environment on your phone. In this step, you will install Termux from F-Droid.
The Play Store version of Termux is outdated and no longer maintained. It will not work correctly with ADL. Always install Termux from F-Droid to get the latest version with all required features.
Step 1: Download F-Droidโ
- Go to https://f-droid.org in your phone's browser.
- Tap "Download F-Droid" to get the APK.
- You may need to allow installs from unknown sources in Android settings.
Step 2: Install F-Droidโ
- Open the downloaded APK.
- Follow Android's install prompts.
- Open F-Droid and let it update its repository list (this takes a minute on first launch).
Step 3: Install Termux from F-Droidโ
- Search "Termux" in F-Droid.
- Install Termux (by Fredrik Fornwall).
- Open Termux.
If you already have Termux from the Play Store, uninstall it first, then install the F-Droid version. The two versions are not compatible and cannot be used side by side.
Step 4: Grant Storage Permissionโ
Run the following command to grant Termux access to your device storage:
termux-setup-storageAndroid will show a permission dialog asking to allow Termux to access your files. Tap "Allow". You should then see a ~/storage directory appear in Termux.
Step 5: Update Packagesโ
Update all installed packages to their latest versions:
pkg update && pkg upgrade -yTermux will download and install the latest package lists and upgrades. This may take 2-3 minutes depending on your connection. When finished, you'll see the Termux prompt again with no errors.
If you see prompts asking about configuration file changes during the upgrade, press Y and Enter to accept the new versions.
Want to understand what Termux is and how it works? See What is Termux? in the Learn track.
Troubleshootingโ
Next Stepโ
With Termux installed and updated, you're ready for a full Linux environment.