Basics of Termux

Termux can be a useful tool if you know how to utilize it.
Don’t look down on it, really don’t.
There’s useful tool in there too.
And it’s take only a few KB to install, that’s almost free, good for fones with low storage. Well, until you start installing things in it. But that’s the fun in it.
Configuring and preparing only takes one tap and a few minutes, even seconds.
Your own portable, low storage tool that you can just pull out from your pocket.
It can be whatever you want it to be: pentesting tool, amusement, and more.

First of all: You tap the app to install base packages. The only requirement is connectivity and a little bit of patience. When it is done installing the base packages, it will show a piece of message to instruct you on what to do. That means it’s now time to type. You now have to use:

pkg help

to display all avalible options for the pkg command. Then you will know what to do next.

To install packages/subscribe to repositories then use:

pkg install [package/repository]

And to delete packages/unsubscibe to a repository, use:

pkg uninstall [package/repository]

Warning: DO NOT delete the preinstalled packages as it’s the core of Termux. It will break your Termux environment and you will have to reinstall Termux.

To upgrade one or all packages then use:

pkg upgrade [packages, leave blank to upgrade all]

To see what files are linked with the package, use (chosen package must be installed):

pkg file [package]

To print a list of installed packages, use:

pkg list-installed

And to print list of all then use:

pkg list-all

To search for an avalible package/repository, use (query is not case sensitive):

pkg search [query]

To see all info of package/repository then use:

pkg show [package/repository]

To read the manual of a command just use:

man [command]

There are 6 repositories total:
– stable-repo (preinstalled, consists of packages that have little to no need of maintenance)
– root-repo (needs manual subsription, dedicated for most pentesting tool)
– x11-repo (needs manual subscription, dedicated for vnc tools)
– unstable-repo (needs manual subscription, name is self-explanatory)
– game-repo (needs manual subscription, name is also self-explanatory)
– science-repo (needs manual subscription, also self-explanatory)

These packages are usually easy to bug out so the Termux issue page is handy for this:
The site can be used to request packages that you want/need for your job and it’ll be implemented into the Termux repositories.


Leave a Reply