GitXplorerGitXplorer
t

whatprovides

public
23 stars
8 forks
0 issues

Commits

List of commits on branch master.
Unverified
db3a7d3d7ba9376b2c6e1f178eeee35168071a63

readme: add deprecation notice

committed 4 years ago
Verified
99aa49cdfdcf7aea9144941dd3bc00f4ffcec92d

new database url

committed 4 years ago
Unverified
c0afb9d22d311d55eefe58dfc1f603d1c0b2367e

store db on releases page currently

committed 4 years ago
Verified
5e163c151856303942be0e223f89486b45c2820d

only download db if newer, -U to force (#15)

llandfillbaby committed 4 years ago
Unverified
83d3c354961ab84c35441e9c7653d1604f1ea72c

hopefully fix sorting large packages

llandfillbaby committed 4 years ago
Verified
e141b80b6f3da362f3e62cea99ef75ad2705ea2d

Merge pull request #13 from landfillbaby/patch-1

committed 4 years ago

README

The README file for this repository.

Deprecation notice

This project is deprecated in favor of apt-file utility. Package whatprovides and database file will be removed.

You can install apt-file package with next command:

pkg install apt-file

Depending on Termux version (< 0.118), you may need to fix permission of one file in $PREFIX (known issue):

chmod +x $PREFIX/lib/apt/apt-helper

Usage example:

~ $ apt-file update
~ $ apt-file list termux-tools
termux-tools: /data/data/com.termux/files/usr/bin/chsh
termux-tools: /data/data/com.termux/files/usr/bin/cmd
termux-tools: /data/data/com.termux/files/usr/bin/dalvikvm
termux-tools: /data/data/com.termux/files/usr/bin/df
termux-tools: /data/data/com.termux/files/usr/bin/getprop
termux-tools: /data/data/com.termux/files/usr/bin/ip
termux-tools: /data/data/com.termux/files/usr/bin/logcat
termux-tools: /data/data/com.termux/files/usr/bin/login
termux-tools: /data/data/com.termux/files/usr/bin/mount
termux-tools: /data/data/com.termux/files/usr/bin/ping
termux-tools: /data/data/com.termux/files/usr/bin/ping6
termux-tools: /data/data/com.termux/files/usr/bin/pkg
termux-tools: /data/data/com.termux/files/usr/bin/pm
termux-tools: /data/data/com.termux/files/usr/bin/settings
termux-tools: /data/data/com.termux/files/usr/bin/su
termux-tools: /data/data/com.termux/files/usr/bin/termux-change-repo
termux-tools: /data/data/com.termux/files/usr/bin/termux-fix-shebang
termux-tools: /data/data/com.termux/files/usr/bin/termux-info
termux-tools: /data/data/com.termux/files/usr/bin/termux-open
termux-tools: /data/data/com.termux/files/usr/bin/termux-open-url
termux-tools: /data/data/com.termux/files/usr/bin/termux-reload-settings
termux-tools: /data/data/com.termux/files/usr/bin/termux-reset
termux-tools: /data/data/com.termux/files/usr/bin/termux-setup-storage
termux-tools: /data/data/com.termux/files/usr/bin/termux-wake-lock
termux-tools: /data/data/com.termux/files/usr/bin/termux-wake-unlock
termux-tools: /data/data/com.termux/files/usr/bin/top
termux-tools: /data/data/com.termux/files/usr/bin/umount
termux-tools: /data/data/com.termux/files/usr/bin/xdg-open
termux-tools: /data/data/com.termux/files/usr/etc/motd
termux-tools: /data/data/com.termux/files/usr/etc/profile.d/init-termux-properties.sh
termux-tools: /data/data/com.termux/files/usr/share/doc/termux-tools/LICENSE
termux-tools: /data/data/com.termux/files/usr/share/examples/termux/termux.properties
termux-tools: /data/data/com.termux/files/usr/share/man/man1/termux.1.gz

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