tldr/pages/linux/pacman-files.md

30 lines
622 B
Markdown
Raw Normal View History

2021-03-08 19:02:50 +00:00
# pacman --files
> Arch Linux package manager utility.
> See also: `pacman`, `pkgfile`.
2021-03-08 19:02:50 +00:00
> More information: <https://man.archlinux.org/man/pacman.8>.
- Update the package database:
`sudo pacman --files --refresh`
- Find the package that owns a specific file:
`pacman --files {{filename}}`
- Find the package that owns a specific file, using a regular expression:
`pacman --files --regex '{{regular_expression}}'`
2021-03-08 19:02:50 +00:00
- List only the package names:
`pacman --files --quiet {{filename}}`
2021-03-08 19:02:50 +00:00
- List the files owned by a specific package:
`pacman --files --list {{package_name}}`
- Display help:
`pacman --files --help`