Termux-app: Install packages to /system [feature request]

Created on 4 Aug 2016  路  6Comments  路  Source: termux/termux-app

This may be a simple question, but since the installer is within the app, I figured I'd ask it here. Termux is a wonderful app, and I use it almost on a daily basis. However, so often times I'd rather use the packages it provides from adb to manage my phone, debug my scripts and so on. I also prefer to use some other Terminal Emulator apps with Termux packages, rather than its own emulator. This is due to many reasons, such as being used to them, having more ready plugins, supporting tabs and easy style configuring.

I use the solution provided here to do so, however, I think this process could be easier, and robust if other people use Termux with their preferred Terminal emulators.

My proposal is that Termux Installer should provide a way to install its binaries to the /system/bin or /system/xbin, if the device is rooted. Also, it needs to either install the libraries in the proper /system directory, and/or add the binary and library directories to the PATH so that using Termux outside its emulator could be as easy typing termux in the console, using an alias.

Of course, installing to the /system should _not_ be enabled by default, and it should be done so only if the device has root access, and the user chooses to do so.

Please consider adding this, I believe installing the binary files to the /system/bin directory will be both useful, and make more sense to Linux-oriented developers. :)

enhancement root wontfix

Most helpful comment

Yes please do the thing! :grinning:

All 6 comments

I think this is a fantastic idea. I also use rooted devices extensively and build my own firmware for many devices, so having this application and all the capabilities added in or natively built in to my firmware files would be excellent.

I would suggest though that the files are added in their own subdirectory of /system/bin, such as /system/bin/termux, with the path added to the root environment. This would aid in easy removal in the future if required and avoid any conflict with files that already exist in Android.

+1

Yes please do the thing! :grinning:

Installing packages to /system will require compiling them against different prefix and having separate repository for them.

@xeffyr How difficult would it be to patch them so that they use the PREFIX environment variable instead of a hardcoded path? You would need to adapt each script to use a little more active code, but it seems doable.

Alternative solution: automated script for creating symlinks for integrating Termux utilities to be more easily usable outside of the Termux environment, without actually changing the installation path. This seems like it would be very easy to do!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msh2050 picture msh2050  路  4Comments

TheNickVendetta picture TheNickVendetta  路  4Comments

gerroon picture gerroon  路  5Comments

flipflop97 picture flipflop97  路  3Comments

AlainKnaff picture AlainKnaff  路  4Comments