whatprovides/README.md

49 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2020-11-19 04:01:41 +00:00
# whatprovides
yum --whatprovides utility for termux.
2020-11-18 10:00:56 +00:00
2020-11-18 10:55:17 +00:00
* 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.
2020-11-18 10:00:56 +00:00
2020-11-18 14:34:02 +00:00
* It can be used as reverse search, means provide full path of any file it will give you output of that pkg.
2020-11-18 10:00:56 +00:00
### Installation:
2020-11-18 19:28:51 +00:00
```
pkg install whatprovides
2020-11-18 10:00:56 +00:00
```
2020-11-19 04:01:41 +00:00
### Manual Installation:
```
pkg install git gawk gzip make sqlite
2020-11-19 04:01:41 +00:00
git clone https://github.com/termux/whatprovides
cd whatprovides
make install
2020-11-19 04:01:41 +00:00
```
2020-11-18 10:00:56 +00:00
### Usage:
* List files of any package. For eg. aapt
```sh
2020-11-18 10:55:17 +00:00
$ whatprovides -p aapt
aapt: /data/data/com.termux/files/usr/bin/aapt
aapt: /data/data/com.termux/files/usr/bin/zipalign
2020-11-18 14:31:08 +00:00
aapt: /data/data/com.termux/files/usr/lib/libandroid-base.so
aapt: /data/data/com.termux/files/usr/lib/libandroid-cutils.so
2020-11-18 14:31:08 +00:00
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
2020-11-18 14:31:08 +00:00
aapt: /data/data/com.termux/files/usr/share/doc/aapt/LICENSE
2020-11-18 10:00:56 +00:00
```
* search for files. Have you ever used `dpkg -S filepath`.
2020-11-19 06:06:55 +00:00
Here you need to use like `whatprovides filepath`.
2020-11-18 10:55:17 +00:00
You can search for any files which even not exist in your termux.
2020-11-19 06:06:55 +00:00
it will show you which package provide that file.
2020-11-18 14:31:08 +00:00
```sh
$ whatprovides $PREFIX/share/aapt
aapt: /data/data/com.termux/files/usr/share/aapt
2020-11-18 14:31:08 +00:00
```