pkgwho
Find which package manager installed a command or font on Linux, or search installed packages by name. pkgwho checks dpkg/apt, Snap, Flatpak, pipx, uv tools, Cargo, and Homebrew, and suggests how to remove packages. It never uninstalls anything automatically.
Installation
Install directly from GitHub with pipx:
pipx install git+https://github.com/tos-kamiya/pkgwho.git
Usage
Pass one or more search terms. By default, pkgwho searches commands, packages, and fonts for each term:
pkgwho git snap flatpak
pkgwho /usr/local/bin/my-command
The exit status is nonzero if any query has no result in the selected search types. In combined mode, a query succeeds if any of the searches finds a result.
--type {command,package,font,all}
Choose what to search. The default is all.
| Type | Search |
|---|---|
command |
Resolve a command in PATH or a file path and identify its package owner. |
package |
Find installed package names by case-insensitive partial match, including libraries. |
font |
Find installed font family or full names by case- and punctuation-insensitive partial match. |
all |
Search all three independently. A package may appear in more than one result. |
pkgwho --type command git
pkgwho --type package chrome
pkgwho --type font "Noto Sans"
Command searches report unknown when no supported manager claims the file.
They also report matching PATH entries in Bash, Zsh, and Fish configuration,
including Fish's fish_user_paths. These entries are not proof of installation;
configuration files are read but never executed or modified.
Font searches require Fontconfig's fc-list. Results include the font file and,
when found in the dpkg or Homebrew formula database, its package and suggested
uninstall command. Unowned files are still shown. An unavailable fc-list is
reported and causes a nonzero exit status in font-only mode.
--no-limit
Text output shows up to 20 matches per search. Use --no-limit to display all
matches:
pkgwho --type package nvidia --no-limit
--json
Emit a JSON array for one or more queries:
pkgwho git unknown-tool --json
In combined mode, each array element contains query, command, package,
and font fields. In single-type mode, each element contains that search's
result directly. JSON includes all matches without the text output's default
20-match limit.
-o FILE, --output FILE
Write the selected output format to a file instead of standard output. Existing files are overwritten:
pkgwho git --json --output results.json
-h, --help
Show command-line usage and exit.
--version
Show the installed pkgwho version and exit.
Supported managers
- dpkg/apt: queries dpkg's file ownership database.
- Snap: checks commands exposed in
/snap/binagainst installed snaps. - Flatpak: recognizes application launchers exported in Flatpak's
exports/bindirectories. - pipx: maps exposed applications from
pipx listto their environments. - uv: maps exposed executables from
uv tool listto installed tools. - Cargo: maps binaries from
cargo install --listto installed crates. - Homebrew: queries installed formulae and matches files listed by Homebrew.
License
pkgwho is distributed under the terms of the MIT license.
Metadata
Release files for pkgwho 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pkgwho-0.1.1.tar.gz | 48.5 kB | Without provenance | Details for pkgwho-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pkgwho-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pkgwho-0.1.1-py3-none-any.whl |
Total release size: 62.1 kB
Release files / pkgwho-0.1.1.tar.gz
| Download URL | pkgwho-0.1.1.tar.gz |
|---|---|
| Size | 48.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae33643a2c24b6f45e7984ec642d12753541f166af0b02f89ea662c8d5cb4b2c
|
|
BLAKE2b-256 checksum How to use checksums |
992f5443312a72367081d9c521a2167fa258372d3f3a09c5965bb033a87e7b36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.2 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-43-generic"}} HTTPX2/2.3.0
|
Release files / pkgwho-0.1.1-py3-none-any.whl
| Download URL | pkgwho-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bd4d483a574725a1f90d52f7e3fea03834542476f2fae1031068c7831dcbbd5
|
|
BLAKE2b-256 checksum How to use checksums |
1b937e532151ba5bf71824342ff11691a06a6bf404ebcfda9ec4fc0135a3148d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.2 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-43-generic"}} HTTPX2/2.3.0
|
Security for pkgwho 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.