mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-01 05:54:13 +00:00
Update cheatsheets
This commit is contained in:
34
linux/pacman-files
Normal file
34
linux/pacman-files
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pacman --files
|
||||
|
||||
> Arch Linux package manager utility.
|
||||
> See also: `pacman`, `pkgfile`.
|
||||
> 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}}'`
|
||||
|
||||
- List only the package names:
|
||||
|
||||
`pacman --files --quiet {{filename}}`
|
||||
|
||||
- List the files owned by a specific package:
|
||||
|
||||
`pacman --files --list {{package}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pacman --files --help`
|
||||
Reference in New Issue
Block a user