2023-08 Update
Only use Termux from F-Droid or the github repository as the version from Google Play store is no longer supported.
Be aware that Termux may be unstable on Android 12+, as Android OS will kill any (phantom) processes greater than 32 (limit is for all apps combined) and also kill any processes using excessive CPU
. See README section for details and links to workarounds
0. Uninstall Google Play Store Termux
- If Termux was installed from Google Play Store, save important data off of device. (If you don't have any important data, skip this step).
- Delete the Google Play Store version of Termux
1. Install F-Droid
When Termux updates, it will be easier to manage from F-Droid so first install F-Droid
- In your mobile browser go to https://f-droid.org/
- Click on "Download F-Droid"
- Install F-Droid by clicking on the downloaded package. Note if Android prompts you to "Open with", choose 'Package installer'
If you are having difficulty installing F-Droid, follow Step 2 to see if your browser is enabled to "Install Unknown Apps" and allow.
2. Give Install permission to F-Droid
- Go into Settings -> Search (magnifying glass icon)
- In search bar type in "Install Unknown Apps"
- Tap on "Install unknown apps Apps > Special app access"
- On the "Special access" / "Special app access" screen scroll down to "Install unknown apps" and click
- On the "Install unknown apps" screen look for F-Droid and click
- For the "F-Droid" app, enable "Allow from this source"
3. Install Termux from F-Droid
- Open F-Droid
- Tap the green search action button in the lower right.
- Type in "Termux"
- Tap on the one that reads "Termux Terminal emulator with packages" Note on the app store page there should be 'Versions' expandable which should have 0.118.0 or higher.
- Install Termux
You should now have Termux in your list of available apps.
4. Launching and upgrading Termux packages
Linux distributions support package management so the easiest way to install is via a package manager. Termux uses one as well which is documented in the wiki.
Following the wiki use the command highlighted in grey:
Answer with 'Yes' to upgrades unless there is a known conflict with an existing installed package.
4a. Check if the software package already exists
As building from source takes storage space and knowledge it is best to check if what you are looking for already exists as a package.
Running the command in Termux:
Listed out
gap/stable 4.12.2 aarch64
Gap is a system for computational discrete algebra, with particular emphasis on Computational Group Theory
gap-packages/stable 4.12.2 all
Packages for gap
gap-static/stable 4.12.2 aarch64
Static libraries for gap
5. Install software package
Run the command
and enter 'Yes' you want to install. Should install gap at a cost of around 204 MB.
6. Run software package
Run gap
as in other Linux/Unix-like environments
7. Leave Termux
Termux when you swipe away will maintain the session and have a status bar notification telling the user that it is still running to keep its state.
Removing the notification requires stopping Termux from running. To end Termux just execute
Notes
Termux behaves similar to a Linux/Unix-like system but out of the box you are limited to storing things within Termux app itself.
Do check the Termux Wiki to get familiar. If needed there are other Development environments available for Termux.