whoneeds shows all installed Arch Linux packages that directly or transitively depend on another installed package, grouped by whether they were explicitly or automatically installed.
It preserves the historical command interface:
whoneeds <package-name>Example output:
Explicitly installed packages that depend on [zlib]
pacman
Other installed packages that depend on [zlib]
curl
When no installed dependents are found, it prints:
Packages that depend on [zlib]
None
whoneeds is implemented in safe Rust and delegates package graph discovery to official Arch tooling:
pactree -lru <package>frompacman-contriblists reverse dependencies.pacman -Qqelists explicitly installed packages.
The queried package itself is removed from the reverse-dependency set. The remaining packages are sorted into an explicitly installed group and an automatically installed group. Empty groups are omitted.
make checkThe repository includes .githooks/pre-commit, which runs the same formatter, tests, and pedantic Clippy checks used by make check.
Enable the tracked hook in this clone with:
git config core.hooksPath .githooksmake install DESTDIR="$pkgdir" PREFIX=/usrRuntime dependency on Arch Linux:
pacman-contrib