3 ms·
RPM-based distros (redhat, etc.) # List all files from q package rpm -ql <package> # Where did file come from rpm -qf <path>
by colechristensen 6y ago
RPM-based distros (redhat, etc.)
# List all files from q package
rpm -ql <package>
# Where did file come from
rpm -qf <path>
- antx 6y agoAnd just because I have to be THAT guy, with Arch linux you use pacman -Ql and pacman -Qo to do the same. Also, man! Do I love the Arch wiki: https://wiki.archlinux.org/index.php/Pacman/Rosetta https://wiki.archlinux.org/index.php/Pacman/Rosetta
- Teknoman117 6y agoI'll be THAT guy as well! On Gentoo, "equery f <package>" displays a list of files installed by that package, "equery b <path>" says which package owns that file or directory, if any. (f and b are the short versions of "files" and "belongs", respectively)
- account42 6y agoI prefer `qlist` and `qfile` from app-portage/portage-utils [0] as the q versions tend to be faster. [0] https://wiki.gentoo.org/wiki/Q_applets https://wiki.gentoo.org/wiki/Q_applets