About
dpkg works on one package file, not a repository. List what a package installed, or install a file you already have. Reach for it to find which package owns a file.
Install it
pkg install dpkg
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
6 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
dpkg -l List every installed package with its version and a short description. dpkg -l git Show the status of one named package. Confirms whether it is present. dpkg -L git List the files a package installed. See exactly what it placed on disk. dpkg -S /usr/bin/git Find which installed package owns a given path. dpkg -i package.deb Install a package from a local file rather than from a repository. dpkg -I package.deb Show the metadata inside a package file without installing it. Worked example
Run dpkg -l figlet and this is what you should see.
$ dpkg -l figlet
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii figlet 2.2.5 aarch64 Prints large text banners The first two letters of each row report desired and current status.
Developed by
The Debian Project .