
Contents of the article
How to install packages in Termux
Installation PIP
Installation Git
Installation WGET
Installation of packages in Termux
Removing packages from Termux
Updating packages in Termux
Command cheat sheet
Termux repositories and mirrors
Termux is a simple and convenient terminal that provides many Linux environment capabilities. It allows you to perform commands in a suitable environment, avoiding the need for preliminary setting up the environment.
How to install packages in Termux
You can install Termux in different ways, the simplest - from Google Play .
Now let's install some important basic tools that are needed to install packages.
pkg update
1 | pkg update |
1 | pkg upgrade |
Installing all required versions of Python
1 | pkg install python |
1 | pkg install python2 |
1 | pkg install python3 |
Installation PIP
1 | pkg install python-pip |
Installation Git
1 | pkg install git |
Installation WGET
1 | pkg install wget |
Installation of packages in Termux
You can get started and install packages in Termux. The team is responsible for installing packages pkg install .
1 | pkg install package-name |
Removing packages from Termux
Using the next command, you can remove the packages from Termux.
1 | pkg uninstall package-name |
The package will be deleted, but the configuration files will remain. If you need to delete them, use the command APT PURGE .
The List command will display all installed packages.
1 | pkg list-all |
Updating packages in Termux
It is highly recommended that you update your installed packages before installing a new package. You can update packages using the command:
1 | pkg upgrade |
I recommend checking for updates at least once a month or before installing new packages.
Command cheat sheet
pkg autoclean | Removing outdated .deb files from cache. |
pkg clean | Removing all .deb from cache. |
PKG Files <packet> | List of files installed by the specified package. |
pkg list - all | List of all available packages. |
pkg list - installed | List of installed packages. |
PKG ReinStall <Package> | Reinstall the package. |
PKG Search <request> | Search for a package. |
pkg show <package> | Retrieving information about a package. |
Termux repositories and mirrors
Termux does not support packages from the repositories of Debian, Ubuntu and other Linux distributions. So don't try to put them in your sources.list or manually install .deb files.
Mirrors are servers that store Termux packages. Selecting a mirror allows you to determine where to download packages from.
To choose a mirror or group of mirrors in Termux, follow the following steps:
Run Termux on your Android device.
When a request appears to choose a mirror or group of mirrors, enter a number corresponding to your choice. Several options are usually available.
Press the Enter key to confirm the choice.
The choice of mirror may depend on your location and accessibility of servers. If one mirror does not work or loading packages is too slow, you can always repeat the process and choose another mirror.
If you missed this step at the first launch of Termux and want to choose a mirror later, execute the command:
1 | pkg mirror && pkg update |
This will allow you to select a new mirror and update packages in Termux.
Official repository:
Unofficial repositories:
Repository | Add repository command |
Game | pkg install game - repo |
Educational | pkg install science - repo |
For root | pkg install root - repo |
x11 packages (Android 7 and above) | pkg install x11 - repo |
Beta packages (Android 7 and above) | pkg install unstable - repo |
That's all. Now you know how to install and control packages in Termux.
Comments