How to install Linux on Android using Termux
Miyazaki, 20th November 2022
If you want to run linux commands on Android you will need an app for that. Termux is a free and open-source terminal emulator that will make that possible. You can install packages like git, php, python and ruby inside termux, which makes it possible to code on your phone.
F-Droid or direct download
Termux is on Google Play, but the version there is old and installing packages doesn't work. The team behind Termux is not able to update it anymore on Google Play
Termux can be downloaded from F-Droid or GitHub: F-Droid is an alternative App Store for Android, it will remind you of updates to Termux, but it's up to you if you install F-Droid first or not! If you are low on bandwidth, try the APK download on the github site and choose ARM64
On F-Droid.org click download F-Droid and install the APK on your phone. If you get an error, you will need to find out how to activate installing APKs on your android phone.
In F-Droid search for Termux and install it.
Congratulations you have installed Termux. You can install packages using the command apt. Make sure to first run apt update
To install git and ssh run the following:
pkg update && pkg upgrade pkg install git openssh
You can also install ruby, python and php the same way.