Go to file
Leonid Pliushch 99aa49cdfd
new database url
2021-06-26 18:31:54 +03:00
LICENSE.md Rename LICENSE to LICENSE.md 2020-11-18 21:37:50 +05:30
Makefile use sqlite format for database 2020-11-20 02:10:47 +02:00
README.md update usage examples 2020-11-22 12:51:44 +00:00
update-whatprovides-db.sh hopefully fix sorting large packages 2020-11-22 19:14:42 +02:00
whatprovides new database url 2021-06-26 18:31:54 +03:00

README.md

whatprovides

yum --whatprovides utility for termux.

  • whatprovides can list files of any termux official packages, doesn't matter that package is installed or not, it uses own database to perform task.

  • It can be used as reverse search, means provide full path of any file it will give you output of that pkg.

Installation:

pkg install whatprovides

Manual Installation:

pkg install git gawk gzip make sqlite
git clone https://github.com/termux/whatprovides
cd whatprovides
make install

Usage:

  • List files of any package. For eg. aapt
$ whatprovides -p aapt
aapt: /data/data/com.termux/files/usr/bin/aapt
aapt: /data/data/com.termux/files/usr/bin/zipalign
aapt: /data/data/com.termux/files/usr/lib/libandroid-base.so
aapt: /data/data/com.termux/files/usr/lib/libandroid-cutils.so
aapt: /data/data/com.termux/files/usr/lib/libandroid-fw.so
aapt: /data/data/com.termux/files/usr/lib/libandroid-utils.so
aapt: /data/data/com.termux/files/usr/lib/libandroid-ziparchive.so
aapt: /data/data/com.termux/files/usr/share/aapt/android.jar
aapt: /data/data/com.termux/files/usr/share/doc/aapt/LICENSE
  • search for files. Have you ever used dpkg -S filepath. Here you need to use like whatprovides filepath. You can search for any files which even not exist in your termux. it will show you which package provide that file.
$ whatprovides $PREFIX/share/aapt
aapt: /data/data/com.termux/files/usr/share/aapt