Files
cheatsheet-tldr/tldr/linux/pacman-files
2025-12-03 00:20:54 +00:00

35 lines
617 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pacman --files
> Query the local files database.
> See also: `pacman`, `pkgfile`.
> More information: <https://manned.org/pacman.8>.
- Update the package database:
`sudo pacman -Fy`
- Find the package that owns a specific [F]ile:
`pacman -F {{filename}}`
- Find the package that owns a specific [F]ile, using a `rege[x]`:
`pacman -Fx '{{regex}}'`
- List only the package names:
`pacman -Fq {{filename}}`
- [l]ist the [F]iles owned by a specific package:
`pacman -Fl {{package}}`
- Display [h]elp:
`pacman -Fh`