Termux uses apt and dpkg for package management, similar to Ubuntu or Debian.
Limitations
Why can I not access openssl on termux. OpenSSL works just fine for me. Are you sure it is installed correctly? (pkg install openssl openssl-tool) can strongswan be used. Unfortunately, you cannot use a VPN on Termux without root. # Termux TERMUX BASIC PACKAGES-pkg update -y. Pkg install python -y. Pkg install python2 -y. Pkg install python2-dev -y. Pkg install python3 -y. Pkg install java -y. Pkg install fish -y. Pkg install ruby -y. Pkg install help -y. Pkg install git -y. Pkg install host -y. Pkg install php -y. Pkg install perl -y.
First: pkg install debootstrap proot wget. Check your architecture with: uname -m Example usage: debootstrap -arch=ARCH stable debian-stable http://ftp.debian.org. Also, push the curl and openssl binaries from data/local/bin to /system/bin on the device. Be sure to chmod them to 0755. Once all that is done, have fun using curl! I have confirmed this to be working on my Kindle Fire HD running android 4.2.2. EDIT: Root is needed in order to run OpenSSL, but not cURL.
Termux does not support use of packages from the Debian, Ubuntu and other Linux distribution repositories. For this reason do not attempt put these ones into your sources.list or manually installing their .deb files. See Differences from Linux to learn why.
Additional restrictions:
- Only single architecture is supported at the moment. You can't have both 64 and 32 bit packages installed at the same time.
- Apt usage under root is restricted to prevent messing up ownership and SELinux labels on Android /data partition.
- Downgrading is not supported. In order to reclaim disk space, we do not keep history of package versions.
Using the package manager
We strongly recommend to use a
pkg
utility instead of apt
directly. It is a wrapper that performs a number of tasks:- Provides command shortcuts. Use 'pkg in' instead of 'pkg install' or 'apt install'.
- Automatically runs 'apt update' before installing a package if necessary.
- Performs some client side repository load-balancing by automatically switching mirrors on a regular basis. That is important to prevent us hitting quota limit on hosting.
Installing a new package:
It is highly recommended to upgrade existing packages before installing the new one. You can install updates by running this command:
Additionally, we suggesting to check for updates at least once a week. Otherwise there is a certain risk that during package installation or upgrade you will encounter issues.
Removing the installed package:
This will remove package but modified configuration files will be left intact. If you want to remove them, use
apt purge
instead.![Termux Termux](/uploads/1/3/8/1/138155646/902863728.jpg)
See below for additional supported commands:
Command | Description |
---|---|
pkg autoclean | Remove outdated .deb files from the cache. |
pkg clean | Remove all .deb files from the cache. |
pkg files <package> | List files installed by specified package. |
pkg list-all | List all available packages. |
pkg list-installed | List currently installed packages. |
pkg reinstall <package> | Re-install specified package. |
pkg search <query> | Search package by query. |
pkg show <package> | Show information about specific package. |
Official repositories
The main Termux repository is accessible through https://termux.org/packages. Currently this URL just redirects on IPFS P2P network gateway as primary package server not yet available.
We have some optional repositories which provide content on specific topic and can be enabled by installing packages with name ending in
-repo
.List of current optional repositories:
Repository | Command to subscribe to repository |
---|---|
game-packages | pkg install game-repo |
science-packages | pkg install science-repo |
termux-root-packages | pkg install root-repo |
x11-packages (Android 7+ only) | pkg install x11-repo |
unstable-packages (Android 7+ only) | pkg install unstable-repo |
Packages for our official repositories are built from scripts located in github.com/termux/ and are maintained and signed by member of the Termux developer team. Public keys for verifying signatures are provided in package
termux-keyring
. For more information about how the repositories are signed, see termux-keyring.The mirrors of Termux apt repositories are available. See up-to-date information about them on Github.
You can pick a mirror by using utility
termux-change-repo
.Community repositories
In addition to the official repositories, there are repositories hosted by community members. You are welcome to host own Termux repository too.
You can create own repository by using termux-apt-repo from the command line and Github Pages as hosting. Be aware that Github has a strict limit of 100 MB per file and if your repository exceeds total size of 1 GB, you might receive a polite email from GitHub Support requesting that you reduce the size of the repository. So if you have really big packages you may want to use a different hostings. Choose hostings according to filetypes, for example, videos can be hosted at https://YouTube.com or similar.
By its-pointless
Repository of this community member includes gcc, gfortran, octave, r-cran (R language), scipy and lots of games!
To add this repository, execute:
The script essentially installs gnupg on your device, downloads and adds a public key to your apt keychain ensuring that all subsequent downloads are from the same source.
Package requests
Packages can be requested at https://github.com/termux/termux-packages/issues. Note that your opened issue with request can be moved to another repository, like termux-root-packages or x11-packages if it is not suitable for the main repository.
Please ensure that you have read our Packaging Policy.
Other package managers
Some programming languages have their own package managers. We tend not to package things installable with this ones due to issues when cross-compiling them in our build environment.
Retrieved from 'https://wiki.termux.com/index.php?title=Package_Management&oldid=6051'
Roshanconnor Yo yoLet me come straight to the point
Follow the steps below to setup Autorclone in Android (using termux)
- Install termux from Playstore
- Go to settings-Apps-Termux-Give Storage Permissions
- Open Termux
- Run the code below
Termux Openssh Server
pkg install python && pkg install rclone && pkg install openssl
- After this minimise Termux app
- download https://github.com/xyou365/AutoRclone/archive/master.zip
- Extract it
- after that create a new folder called Autorclone in Internal storage
- move all the contents from this extracted folder to this new Autorclone folder
- Open browser
- Now go to https://developers.google.com/drive/api/v3/quickstart/python
- Remember which email you are using for this step..its important
- Enable Drive API - Choose Desktop
- Download the credentials.json
- Open File Manager in Phone
- Go to Downloads Folder
- Select credentials.json & Move it to Autorclone Folder in your Internal Storage
Go back to termux now
Run the code below
cd /sdcard/Autorclone && pip install -r requirements.txt
python gen_sa_accounts.py --quick-setup 1 --new-only
![Termux openssh Termux openssh](/uploads/1/3/8/1/138155646/810627737.png)
After it is finished, there will be many json files in one folder named
accounts
.Here I used 1 because I need only 100 Service accounts (ie to copy 75TB a day)
If you need more Service accounts..change the number as per your need
I must warn you that - If you have only data less than 75 TB ,just use
1
not more than that..its because that you can add only 100 members to google groups in a dayAfter that copy paste this code to your termux :-
cd /sdcard/Autorclone/accounts/ && grep -oPh 'client_email': 'K[^']+' *.json > emails.txt
Termux Openssl-dev
- Go to accounts Folder in Autorclone Folder
- You will see emails.txt , Open it-You will see 100 emails
- Go to Google Groups
- Follow this image now
Add the group address [email protected] to your source Team Drive (as viewer) and destination Team Drive (as contributor)
---------------------------------------------------------------------------------------------------
To copy From one Teamdrive to another Teamdrive:
Go read the Gclone Guide Here
----------------------------------------------------------------------------------------------------
Termux Openssh
Credits - https://github.com/xyou365/AutoRclone
Termux Opensuse
The Archivists - The script to get emails from jsons